From a70196587f7213a6b25791b3faa6590674829ba1 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 4 Apr 2009 00:38:31 +0000 Subject: hubbub_alloc -> hubbub_allocator_fn svn path=/trunk/hubbub/; revision=7043 --- src/utils/dict.c | 4 ++-- src/utils/dict.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils') diff --git a/src/utils/dict.c b/src/utils/dict.c index 7bd2df7..8dd6adf 100644 --- a/src/utils/dict.c +++ b/src/utils/dict.c @@ -25,7 +25,7 @@ typedef struct hubbub_dict_node { struct hubbub_dict { hubbub_dict_node *dict; /**< Root of tree */ - hubbub_alloc alloc; /**< Memory (de)allocation function */ + hubbub_allocator_fn alloc; /**< Memory (de)allocation function */ void *pw; /**< Pointer to client data */ }; @@ -46,7 +46,7 @@ static hubbub_dict_node *hubbub_dict_insert_internal(hubbub_dict *dict, * HUBBUB_BADPARM on bad parameters, * HUBBUB_NOMEM on memory exhaustion */ -hubbub_error hubbub_dict_create(hubbub_alloc alloc, void *pw, +hubbub_error hubbub_dict_create(hubbub_allocator_fn alloc, void *pw, hubbub_dict **dict) { hubbub_dict *d; diff --git a/src/utils/dict.h b/src/utils/dict.h index 4ea4440..9718542 100644 --- a/src/utils/dict.h +++ b/src/utils/dict.h @@ -16,7 +16,7 @@ typedef struct hubbub_dict hubbub_dict; /* Create a dictionary */ -hubbub_error hubbub_dict_create(hubbub_alloc alloc, void *pw, +hubbub_error hubbub_dict_create(hubbub_allocator_fn alloc, void *pw, hubbub_dict **dict); /* Destroy a dictionary */ hubbub_error hubbub_dict_destroy(hubbub_dict *dict); -- cgit v1.2.3