summaryrefslogtreecommitdiffstats
path: root/default.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-13 14:57:51 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-13 14:57:51 +0100
commita77e7147c1814b4ed19d6abce417c8d8c627cc32 (patch)
tree0827dabe5bea4a5bb26199675e3a4fa52c2905fd /default.h
downloadfastwriter-a77e7147c1814b4ed19d6abce417c8d8c627cc32.tar.gz
fastwriter-a77e7147c1814b4ed19d6abce417c8d8c627cc32.tar.bz2
fastwriter-a77e7147c1814b4ed19d6abce417c8d8c627cc32.tar.xz
fastwriter-a77e7147c1814b4ed19d6abce417c8d8c627cc32.zip
Initial release
Diffstat (limited to 'default.h')
-rw-r--r--default.h20
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 */