summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-13 15:46:35 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-13 15:46:35 +0100
commit77c5312bac656dc916db91ab97054f80b15eb2f4 (patch)
tree402ede9d23182c8aa247ad7aa944038d3a59bc8c
parent24743158811a1f5a6aa930be8d4cad7d4f9ac22f (diff)
parent65a7473f122c3cf169fa073e23eb7db304607d3b (diff)
downloadfastwriter-77c5312bac656dc916db91ab97054f80b15eb2f4.tar.gz
fastwriter-77c5312bac656dc916db91ab97054f80b15eb2f4.tar.bz2
fastwriter-77c5312bac656dc916db91ab97054f80b15eb2f4.tar.xz
fastwriter-77c5312bac656dc916db91ab97054f80b15eb2f4.zip
Merge
-rw-r--r--default.c7
-rw-r--r--default.h6
2 files changed, 7 insertions, 6 deletions
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;
diff --git a/default.h b/default.h
index 25f6556..b99d908 100644
--- a/default.h
+++ b/default.h
@@ -3,9 +3,9 @@
#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);
+int fastwriter_default_open(fastwriter_t *ctx, const char *name, fastwriter_flags_t flags);
+void fastwriter_default_close(fastwriter_t *ctx);
+int fastwriter_default_write(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 = {