mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-12-03 20:19:09 +05:30
27 lines
515 B
C
27 lines
515 B
C
#ifndef _FILE_BOUNDARIES_H
|
|
#define _FILE_BOUNDARIES_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "common.h"
|
|
|
|
#include "endianness_tools.h"
|
|
|
|
/* structures */
|
|
struct _file_boundaries {
|
|
bool invalid_file;
|
|
off_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 */
|