summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/buffer.h2
-rw-r--r--include/cache.h2
-rw-r--r--include/hash.h2
-rw-r--r--include/queue.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/buffer.h b/include/buffer.h
index 5b854f3..aa753b4 100644
--- a/include/buffer.h
+++ b/include/buffer.h
@@ -13,6 +13,6 @@ void buffer_flush(struct buffer *b,
void (*cb)(void *buffer_data,
void *data),
void *data);
-unsigned int buffer_size(struct buffer *b);
+unsigned int buffer_size(const struct buffer *b);
#endif
diff --git a/include/cache.h b/include/cache.h
index f5e9576..5ca6ce4 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -83,7 +83,7 @@ struct us_conntrack *cache_update(struct cache *c, struct nf_conntrack *ct);
struct us_conntrack *cache_update_force(struct cache *c, struct nf_conntrack *ct);
int cache_del(struct cache *c, struct nf_conntrack *ct);
int cache_test(struct cache *c, struct nf_conntrack *ct);
-void cache_stats(struct cache *c, int fd);
+void cache_stats(const struct cache *c, int fd);
struct us_conntrack *cache_get_conntrack(struct cache *, void *);
void *cache_get_extra(struct cache *, void *);
void cache_iterate(struct cache *c, void *data, int (*iterate)(void *data1, void *data2));
diff --git a/include/hash.h b/include/hash.h
index fd971e7..c9460fa 100644
--- a/include/hash.h
+++ b/include/hash.h
@@ -42,6 +42,6 @@ int hashtable_del(struct hashtable *table, void *data);
int hashtable_flush(struct hashtable *table);
int hashtable_iterate(struct hashtable *table, void *data,
int (*iterate)(void *data1, void *data2));
-unsigned int hashtable_counter(struct hashtable *table);
+unsigned int hashtable_counter(const struct hashtable *table);
#endif
diff --git a/include/queue.h b/include/queue.h
index 691138f..f568da4 100644
--- a/include/queue.h
+++ b/include/queue.h
@@ -21,7 +21,7 @@ struct queue_node {
struct queue *queue_create(size_t max_size);
void queue_destroy(struct queue *b);
-unsigned int queue_len(struct queue *b);
+unsigned int queue_len(const struct queue *b);
int queue_add(struct queue *b, const void *data, size_t size);
void queue_del(struct queue *b, void *data);
void queue_iterate(struct queue *b,