summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/hash.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-04-24 16:36:46 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-04-27 15:12:03 +0200
commitce680b96e207c90429eb702c5ee4b9bec177fdfd (patch)
tree2794e8a3efc8ad08d5ca976db4adc3ef10c512a8 /include/mupdf/fitz/hash.h
parent9a725130b9b16daa332f8502e24eac9cab4cf9b2 (diff)
downloadmupdf-ce680b96e207c90429eb702c5ee4b9bec177fdfd.tar.xz
Typedef function pointers consistently.
Diffstat (limited to 'include/mupdf/fitz/hash.h')
-rw-r--r--include/mupdf/fitz/hash.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mupdf/fitz/hash.h b/include/mupdf/fitz/hash.h
index b5077554..22bcff0f 100644
--- a/include/mupdf/fitz/hash.h
+++ b/include/mupdf/fitz/hash.h
@@ -18,15 +18,15 @@
*/
typedef struct fz_hash_table_s fz_hash_table;
-typedef void (*fz_hash_table_drop_fn)(fz_context *ctx, void *val);
-typedef void (*fz_hash_table_for_each_fn)(fz_context *ctx, void *state, void *key, int keylen, void *val);
+typedef void (fz_hash_table_drop_fn)(fz_context *ctx, void *val);
+typedef void (fz_hash_table_for_each_fn)(fz_context *ctx, void *state, void *key, int keylen, void *val);
-fz_hash_table *fz_new_hash_table(fz_context *ctx, int initialsize, int keylen, int lock, fz_hash_table_drop_fn drop_val);
+fz_hash_table *fz_new_hash_table(fz_context *ctx, int initialsize, int keylen, int lock, fz_hash_table_drop_fn *drop_val);
void fz_drop_hash_table(fz_context *ctx, fz_hash_table *table);
void *fz_hash_find(fz_context *ctx, fz_hash_table *table, const void *key);
void *fz_hash_insert(fz_context *ctx, fz_hash_table *table, const void *key, void *val);
void fz_hash_remove(fz_context *ctx, fz_hash_table *table, const void *key);
-void fz_hash_for_each(fz_context *ctx, fz_hash_table *table, void *state, fz_hash_table_for_each_fn callback);
+void fz_hash_for_each(fz_context *ctx, fz_hash_table *table, void *state, fz_hash_table_for_each_fn *callback);
#endif