> + 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
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev