[svn-commits] murf: branch murf/fast-ast r47728 - /team/murf/fast-ast/main/hashtab.h

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Nov 16 07:32:58 MST 2006


Author: murf
Date: Thu Nov 16 08:32:58 2006
New Revision: 47728

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47728
Log:
Some mods to hashtab.h

Modified:
    team/murf/fast-ast/main/hashtab.h

Modified: team/murf/fast-ast/main/hashtab.h
URL: http://svn.digium.com/view/asterisk/team/murf/fast-ast/main/hashtab.h?view=diff&rev=47728&r1=47727&r2=47728
==============================================================================
--- team/murf/fast-ast/main/hashtab.h (original)
+++ team/murf/fast-ast/main/hashtab.h Thu Nov 16 08:32:58 2006
@@ -155,6 +155,9 @@
 	/* returns 1 on success, 0 if there's a problem */
 int ast_hashtab_insert_immediate(struct ast_hashtab *tab, const void *obj);
 
+	/* same as the above, but h is the hash index; won't hash to find the index */
+int ast_hashtab_insert_immediate_bucket(struct ast_hashtab *tab, const void *obj, int h);
+
 
 	/* check to see if the element is already there; insert only if
 	   it is not there.*/
@@ -166,6 +169,9 @@
 	/* lookup this object in the hash table. return a ptr if found, or NULL if not */
 void * ast_hashtab_lookup(struct ast_hashtab *tab, const void *obj);
 
+	/* same as the above lookup, but sets h to the index if the lookup fails */
+void * ast_hashtab_lookup_bucket(struct ast_hashtab *tab, const void *obj, int *h);
+
 	/* returns key stats for the table */
 void ast_hashtab_get_stats( struct ast_hashtab *tab, int *biggest_bucket_size, int *resize_count, int *num_objects, int *num_buckets);
 



More information about the svn-commits mailing list