blob: 25f65566e8f009f9651f3cc2928f2f2b5b52a1fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef _FASTWRITER_DEFAULT_H
#define _FASTWRITER_DEFAULT_H
#include "private.h"
int fastwriter_open_default(fastwriter_t *ctx, const char *name, fastwriter_flags_t flags);
void fastwriter_close_default(fastwriter_t *ctx);
int fastwriter_write_default(fastwriter_t *ctx, fastwriter_write_flags_t flags, size_t size, void *data, size_t *written);
#ifdef _FASTWRITER_DEFAULT_C
fastwriter_api_t fastwriter_default_api = {
fastwriter_default_open,
fastwriter_default_close,
fastwriter_default_write
};
#else /* _FASTWRITER_DEFAULT_C */
extern fastwriter_api_t fastwriter_default_api;
#endif /* _FASTWRITER_DEFAULT_C */
#endif /* _FASTWRITER_DEFAULT_H */
|