polonium/include/file_boundaries.h

26 lines
523 B
C

#ifndef _FILE_BOUNDARIES_H
#define _FILE_BOUNDARIES_H
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "common.h"
#include "endianness_tools.h"
/* structures */
struct _file_boundaries {
bool invalid_file;
file_offset_t start, end;
};
/* typedefs */
typedef struct _file_boundaries file_boundaries_t;
/* function definitions */
file_boundaries_t* determine_boundaries_BMP(FILE* file);
file_boundaries_t* determine_boundaries_WAV(FILE* file);
#endif /* _FILE_BOUNDARIES_H */