aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-05-25 12:17:04 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-05-25 12:17:04 +0200
commit8245b7fa89e7389a011cafc252ef269f8fea5d6e (patch)
tree0844bff8c8e9ca309da2e1cd4eb5f77c917f35e0
parenteccc3c90d32800dc79530d73d2bffb6d15919e29 (diff)
downloadlibrb-8245b7fa89e7389a011cafc252ef269f8fea5d6e.tar.gz
librb-8245b7fa89e7389a011cafc252ef269f8fea5d6e.tar.bz2
librb-8245b7fa89e7389a011cafc252ef269f8fea5d6e.zip
add names to parameters in rb.h
-rw-r--r--include/rb.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/include/rb.h b/include/rb.h
index 7a02c0d..da7d036 100644
--- a/include/rb.h
+++ b/include/rb.h
@@ -24,21 +24,23 @@
#define O_MULTITHREAD 0x10000000L
struct rb;
-struct rb *rb_new(size_t, size_t, unsigned long);
-struct rb *rb_init(size_t, size_t, unsigned long, void *);
-long rb_read(struct rb *, void *, size_t);
-long rb_recv(struct rb *, void *, size_t, unsigned long);
-long rb_write(struct rb *, const void *, size_t);
-long rb_send(struct rb *, const void *, size_t, unsigned long);
-
-int rb_clear(struct rb *, int);
-int rb_destroy(struct rb *);
-int rb_cleanup(struct rb *);
-int rb_stop(struct rb *);
-long rb_discard(struct rb *, size_t);
-const char *rb_version(char *, char *, char *);
-long rb_count(struct rb *);
-long rb_space(struct rb *);
+struct rb *rb_new(size_t count, size_t object_size, unsigned long flags);
+struct rb *rb_init(size_t count, size_t object_size, unsigned long flags,
+ void *mem);
+long rb_read(struct rb *rb, void *buffer, size_t count);
+long rb_recv(struct rb *rb, void *buffer, size_t count, unsigned long flags);
+long rb_write(struct rb *rb, const void *buffer, size_t count);
+long rb_send(struct rb *rb, const void *buffer, size_t count,
+ unsigned long flags);
+
+int rb_clear(struct rb *rb, int clear);
+int rb_destroy(struct rb *rb);
+int rb_cleanup(struct rb *rb);
+int rb_stop(struct rb *rb);
+long rb_discard(struct rb *rb, size_t count);
+const char *rb_version(char *major, char *minor, char *patch);
+long rb_count(struct rb *rb);
+long rb_space(struct rb *rb);
size_t rb_header_size(void);
#endif