2024-07-07 03:18:23 +05:30
|
|
|
#ifndef _FILE_BOUNDARIES_H
|
|
|
|
#define _FILE_BOUNDARIES_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2024-09-22 14:52:54 +05:30
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
2024-07-07 03:18:23 +05:30
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
#include "endianness_tools.h"
|
|
|
|
|
|
|
|
/* structures */
|
|
|
|
struct _file_boundaries {
|
|
|
|
bool invalid_file;
|
2024-07-09 17:23:20 +05:30
|
|
|
file_offset_t start, end;
|
2024-07-07 03:18:23 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
/* typedefs */
|
|
|
|
typedef struct _file_boundaries file_boundaries_t;
|
|
|
|
|
|
|
|
/* function definitions */
|
2024-11-20 01:45:44 +05:30
|
|
|
file_boundaries_t determine_boundaries_BMP(FILE* file);
|
|
|
|
file_boundaries_t determine_boundaries_WAV(FILE* file);
|
2024-07-07 03:18:23 +05:30
|
|
|
|
|
|
|
#endif /* _FILE_BOUNDARIES_H */
|