From 65a7473f122c3cf169fa073e23eb7db304607d3b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 13 Dec 2011 15:09:17 +0100 Subject: Compile-in default api descriptor --- default.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'default.c') diff --git a/default.c b/default.c index 693e157..8ff5135 100644 --- a/default.c +++ b/default.c @@ -30,6 +30,7 @@ #include "fastwriter.h" #include "private.h" #include "sysinfo.h" +#include "default.h" #define SYNC_MODE #define HAVE_FALLOCATE @@ -48,7 +49,7 @@ typedef struct { } fastwriter_default_t; -int fastwriter_open_default(fastwriter_t *fw, const char *name, fastwriter_flags_t flags) { +int fastwriter_default_open(fastwriter_t *fw, const char *name, fastwriter_flags_t flags) { int err; char fs[16]; @@ -108,7 +109,7 @@ int fastwriter_open_default(fastwriter_t *fw, const char *name, fastwriter_flags } -void fastwriter_close_default(fastwriter_t *fw) { +void fastwriter_default_close(fastwriter_t *fw) { if (fw->ctx) { fastwriter_default_t *ctx = (fastwriter_default_t*)fw->ctx; @@ -127,7 +128,7 @@ void fastwriter_close_default(fastwriter_t *fw) { } -int fastwriter_write_default(fastwriter_t *fw, fastwriter_write_flags_t flags, size_t size, void *data, size_t *written) { +int fastwriter_default_write(fastwriter_t *fw, fastwriter_write_flags_t flags, size_t size, void *data, size_t *written) { size_t sum = 0; ssize_t res; fastwriter_default_t *ctx = (fastwriter_default_t*)fw->ctx; -- cgit v1.2.3