aboutsummaryrefslogtreecommitdiff
path: root/include/bh/internal/file.h
blob: 1e9fed01ee81bd64d5b1915a3bfc2c4ffe01bafe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef BH_INTERNAL_FILE_H
#define BH_INTERNAL_FILE_H

#include "bh.h"
#include "io.h"
#include <bh/file.h>

#if defined(BH_PLATFORM_POSIX)
#include "file_posix.h"
#elif defined(BH_PLATFORM_WIN)
#include "file_win.h"
#else
#include "file_null.h"
#endif

int bh_file_init(bh_file_t *file,
                 const char *path);

void bh_file_destroy(bh_file_t *file);

#endif /* BH_INTERNAL_FILE_H */