diff options
Diffstat (limited to 'default.h')
-rw-r--r-- | default.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/default.h b/default.h new file mode 100644 index 0000000..25f6556 --- /dev/null +++ b/default.h @@ -0,0 +1,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 */ |