In modules/rtpengine/rtpengine_hash.h:

> +	str callid;				// call callid
> +	struct rtpp_node *node;			// call selected node
> +
> +	struct rtpengine_hash_entry *next;	// call next
> +};
> +
> +/* table */
> +struct rtpengine_hash_table {
> +	struct rtpengine_hash_entry **entry_list;	// hastable
> +	unsigned int total;				// total number of entries in the hashtable
> +};
> +
> +
> +int rtpengine_hash_table_init(int size);
> +int rtpengine_hash_table_destroy();
> +int rtpengine_hash_table_insert(void *key, void *value);

I don't think there's a good reason to use void pointers here, since the types are known and using void pointers prevents the compiler from catching type errors.


Reply to this email directly or view it on GitHub.