diff options
Diffstat (limited to 'default.c')
-rw-r--r-- | default.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |