[sr-dev] [kamailio] rtpengine: hash table to keep the selected nodes (#390)
Richard Fuchs
notifications at github.com
Wed Nov 11 17:38:30 CET 2015
> + 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:
https://github.com/kamailio/kamailio/pull/390/files#r44553486
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151111/6213037d/attachment.html>
More information about the sr-dev
mailing list