<div dir="auto">Yes, I have not seen before. I have written the function just as <div dir="auto"><span style="font-family:sans-serif">ht_api_get_cell_expire_f function that it returned the value of cell,too.</span><br></div><div dir="auto"><span style="font-family:sans-serif">Sure, I will look around this function again and try to pull request it.</span></div><div dir="auto"><span style="font-family:sans-serif">Thanks.</span></div><div dir="auto"><br></div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Sun, 24 Feb 2019, 02:19 Henning Westerholt, <<a href="mailto:hw@kamailio.org">hw@kamailio.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Samstag, 23. Februar 2019, 12:42:28 CET schrieb Mojtaba:<br>
> According to previous my question about udsing htable module as<br>
> dependencies module in other modules (Actually i mean hiops module), i want<br>
> to have some changes in my code. Already i saved some data in cache memory<br>
> that is implemented via linked_list structure in module, i want to replace<br>
> them with htable module.<br>
> So i have to load htable module and some more extra works, all things are<br>
> straightforward. But when i have more dived into htable module (api.c,<br>
> ht_api.c files), there is no function to get the value of specific key.<br>
> there is "ht_api_get_cell_expire_f" function that it just get back the<br>
> expire time, no value of key.<br>
> Now I need a function that it return the value of key also, Could i add<br>
> this function in api.c and ht_api.c source files and commit it or not?<br>
> If there is already the function like this, let me know about it?<br>
> Let me know about it?<br>
<br>
Hello Mojtaba,<br>
<br>
the htable API could be extended if necessary. So you propose a <br>
ht_api_get_cell" API function binding? The proper way to add this to the <br>
htable module would be with a pull request, that the author can have a look <br>
and it can be reviewed and maybe adapted before integration.<br>
<br>
I looked in the API, there is no function like this right now:<br>
<br>
typedef struct htable_api {<br>
ht_api_set_cell_f set;<br>
ht_api_del_cell_f rm;<br>
ht_api_set_cell_expire_f set_expire;<br>
ht_api_get_cell_expire_f get_expire;<br>
ht_api_rm_cell_re_f rm_re;<br>
ht_api_count_cells_re_f count_re;<br>
} htable_api_t;<br>
<br>
Best regards,<br>
<br>
Henning<br>
<br>
-- <br>
Henning Westerholt - <a href="https://skalatan.de/blog/" rel="noreferrer noreferrer" target="_blank">https://skalatan.de/blog/</a><br>
Kamailio services - <a href="https://skalatan.de/services" rel="noreferrer noreferrer" target="_blank">https://skalatan.de/services</a><br>
Kamailio security assessment - <a href="https://skalatan.de/de/assessment" rel="noreferrer noreferrer" target="_blank">https://skalatan.de/de/assessment</a><br>
</blockquote></div></div>