summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-13 15:45:59 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-12-13 15:45:59 +0100
commit24743158811a1f5a6aa930be8d4cad7d4f9ac22f (patch)
tree182c3108dc20eaf178f0f7f02cc12b1a9e52b814
parenta77e7147c1814b4ed19d6abce417c8d8c627cc32 (diff)
downloadfastwriter-24743158811a1f5a6aa930be8d4cad7d4f9ac22f.tar.gz
fastwriter-24743158811a1f5a6aa930be8d4cad7d4f9ac22f.tar.bz2
fastwriter-24743158811a1f5a6aa930be8d4cad7d4f9ac22f.tar.xz
fastwriter-24743158811a1f5a6aa930be8d4cad7d4f9ac22f.zip
Just push instead push_chunk
-rw-r--r--fastwriter.c4
-rw-r--r--fastwriter.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/fastwriter.c b/fastwriter.c
index 70f1043..3e63468 100644
--- a/fastwriter.c
+++ b/fastwriter.c
@@ -232,7 +232,7 @@ static void *fastwriter_writer_thread(void *user) {
}
-int fastwriter_push_chunk(fastwriter_t *ctx, size_t size, const void *data) {
+int fastwriter_push(fastwriter_t *ctx, size_t size, const void *data) {
size_t part1, end;
size_t free = fastwriter_compute_free_space(ctx);
@@ -307,7 +307,7 @@ int fastwriter_cancel(fastwriter_t *ctx) {
int fastwriter_push_data(fastwriter_t *ctx, size_t size, const void *buf) {
int err;
- err = fastwriter_push_chunk(ctx, size, buf);
+ err = fastwriter_push(ctx, size, buf);
if (err) return err;
err = fastwriter_commit(ctx);
diff --git a/fastwriter.h b/fastwriter.h
index 389b0a9..b6b1f37 100644
--- a/fastwriter.h
+++ b/fastwriter.h
@@ -35,7 +35,7 @@ int fastwriter_get_stats(fastwriter_t *ctx, fastwriter_stats_t *stats);
int fastwriter_open(fastwriter_t *ctx, const char *name, fastwriter_flags_t flags);
int fastwriter_close(fastwriter_t *ctx);
-int fastwriter_push_chunk(fastwriter_t *ctx, size_t size, const void *buf);
+int fastwriter_push(fastwriter_t *ctx, size_t size, const void *buf);
int fastwriter_commit(fastwriter_t *ctx);
int fastwriter_cancel(fastwriter_t *ctx);