diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-06 20:03:57 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-06 20:03:57 +0400 |
commit | 6b306ab8752befc28d259be55495f8249cc2df24 (patch) | |
tree | 0fa3d471aef61925563709e0f8ee5667b57c7a9d /src/radix.h | |
parent | 8d0053734fb5a4ccd8c3bda731e6b7c8261c6f67 (diff) | |
download | rspamd-6b306ab8752befc28d259be55495f8249cc2df24.tar.gz rspamd-6b306ab8752befc28d259be55495f8249cc2df24.zip |
Fixes types (use glib ones) no functional change.
Now all comments in commit logs beginning with '*' would be included in changelog, so
important changes would be separated from small ones.
Diffstat (limited to 'src/radix.h')
-rw-r--r-- | src/radix.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/radix.h b/src/radix.h index 70aac1f74..1a1cd26fd 100644 --- a/src/radix.h +++ b/src/radix.h @@ -13,7 +13,7 @@ struct radix_node_s { radix_node_t *left; radix_node_t *parent; uintptr_t value; - uint32_t key; + guint32 key; }; @@ -23,7 +23,7 @@ typedef struct { memory_pool_t *pool; } radix_tree_t; -typedef gboolean (*radix_tree_traverse_func)(uint32_t key, uint32_t mask, uintptr_t value, void *user_data); +typedef gboolean (*radix_tree_traverse_func)(guint32 key, guint32 mask, uintptr_t value, void *user_data); /** * Create new radix tree @@ -36,7 +36,7 @@ radix_tree_t *radix_tree_create (); * 0 if operation was successfull * -1 if there was some error */ -int radix32tree_insert (radix_tree_t *tree, uint32_t key, uint32_t mask, uintptr_t value); +gint radix32tree_insert (radix_tree_t *tree, guint32 key, guint32 mask, uintptr_t value); /** * Add value to radix tree or insert it if value does not exists @@ -44,7 +44,7 @@ int radix32tree_insert (radix_tree_t *tree, uint32_t key, uint32_t mask, uintptr * 0 if value was inserted * -1 if there was some error */ -uintptr_t radix32tree_add (radix_tree_t *tree, uint32_t key, uint32_t mask, uintptr_t value); +uintptr_t radix32tree_add (radix_tree_t *tree, guint32 key, guint32 mask, uintptr_t value); /** * Replace value in radix tree or insert it if value does not exists @@ -52,7 +52,7 @@ uintptr_t radix32tree_add (radix_tree_t *tree, uint32_t key, uint32_t mask, uint * 0 if value was inserted * -1 if there was some error */ -int radix32tree_replace (radix_tree_t *tree, uint32_t key, uint32_t mask, uintptr_t value); +gint radix32tree_replace (radix_tree_t *tree, guint32 key, guint32 mask, uintptr_t value); /** * Delete value from radix tree @@ -60,14 +60,14 @@ int radix32tree_replace (radix_tree_t *tree, uint32_t key, uint32_t mask, uintpt * 0 if value was deleted * -1 if there was some error */ -int radix32tree_delete (radix_tree_t *tree, uint32_t key, uint32_t mask); +gint radix32tree_delete (radix_tree_t *tree, guint32 key, guint32 mask); /** * Find value in radix tree * returns: value if value was found * RADIX_NO_VALUE if value was not found */ -uintptr_t radix32tree_find (radix_tree_t *tree, uint32_t key); +uintptr_t radix32tree_find (radix_tree_t *tree, guint32 key); /** * Traverse via the whole tree calling specified callback |