Hi dev team,
I have a question: is there any internal built-in database (hashtable or something like that) that I can use ? I need a functionality: key->value (get/set).
Thanks!
No, I mean module independent.
2012/12/14 Juha Heinanen jh@tutpro.com
Konstantin M. writes:
I have a question: is there any internal built-in database (hashtable or something like that) that I can use ? I need a functionality: key->value (get/set).
check htable module.
-- juha
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Something like shared memory hashtables http://caruizdiaz.com/?p=374?
On Fri, Dec 14, 2012 at 7:04 PM, Konstantin M. evilzluk@gmail.com wrote:
No, I mean module independent.
2012/12/14 Juha Heinanen jh@tutpro.com
Konstantin M. writes:
I have a question: is there any internal built-in database (hashtable or something like that) that I can use ? I need a functionality: key->value (get/set).
check htable module.
-- juha
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
The idea is to keep the core as small and clean as possible, that's why you need to use a module. Simply bind to the module's API, use it and list it as as dependency. If the module is not available, then simply disable the new functionality or implement the new functionality in a new dedicated module.
Regards, Ovidiu Sas
On Fri, Dec 14, 2012 at 5:04 PM, Konstantin M. evilzluk@gmail.com wrote:
No, I mean module independent.
2012/12/14 Juha Heinanen jh@tutpro.com
Konstantin M. writes:
I have a question: is there any internal built-in database (hashtable or something like that) that I can use ? I need a functionality: key->value (get/set).
check htable module.
-- juha
I forgot to mention, a value isn't just int or char, it's a struct. For now I've already build it based on http://developer.gnome.org/glib/2.30/glib-Hash-Tables.html, works perfect.
Thanks to all for answers.
2012/12/15 Ovidiu Sas osas@voipembedded.com
The idea is to keep the core as small and clean as possible, that's why you need to use a module. Simply bind to the module's API, use it and list it as as dependency. If the module is not available, then simply disable the new functionality or implement the new functionality in a new dedicated module.
Regards, Ovidiu Sas
On Fri, Dec 14, 2012 at 5:04 PM, Konstantin M. evilzluk@gmail.com wrote:
No, I mean module independent.
2012/12/14 Juha Heinanen jh@tutpro.com
Konstantin M. writes:
I have a question: is there any internal built-in database (hashtable
or
something like that) that I can use ? I need a functionality: key->value (get/set).
check htable module.
-- juha
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Why the internal hashtable structure didn't fit your needs?
You can also store structs in it.
On Fri, Dec 14, 2012 at 9:30 PM, Konstantin M. evilzluk@gmail.com wrote:
I forgot to mention, a value isn't just int or char, it's a struct. For now I've already build it based on http://developer.gnome.org/glib/2.30/glib-Hash-Tables.html, works perfect.
Thanks to all for answers.
2012/12/15 Ovidiu Sas osas@voipembedded.com
The idea is to keep the core as small and clean as possible, that's why you need to use a module. Simply bind to the module's API, use it and list it as as dependency. If the module is not available, then simply disable the new functionality or implement the new functionality in a new dedicated module.
Regards, Ovidiu Sas
On Fri, Dec 14, 2012 at 5:04 PM, Konstantin M. evilzluk@gmail.com wrote:
No, I mean module independent.
2012/12/14 Juha Heinanen jh@tutpro.com
Konstantin M. writes:
I have a question: is there any internal built-in database
(hashtable or
something like that) that I can use ? I need a functionality: key->value (get/set).
check htable module.
-- juha
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Because it's looks like relatively complex to me, at least right now, not enough api knowledge. But it's just a matter of time. However, looking to 'modules_k/purple/hashtable.c' - this code is exactly based on glib that I've used too.
2012/12/15 Carlos Ruiz Díaz carlos.ruizdiaz@gmail.com
Why the internal hashtable structure didn't fit your needs?
You can also store structs in it.
On Fri, Dec 14, 2012 at 9:30 PM, Konstantin M. evilzluk@gmail.com wrote:
I forgot to mention, a value isn't just int or char, it's a struct. For now I've already build it based on http://developer.gnome.org/glib/2.30/glib-Hash-Tables.html, works perfect.
Thanks to all for answers.
2012/12/15 Ovidiu Sas osas@voipembedded.com
The idea is to keep the core as small and clean as possible, that's why you need to use a module. Simply bind to the module's API, use it and list it as as dependency. If the module is not available, then simply disable the new functionality or implement the new functionality in a new dedicated module.
Regards, Ovidiu Sas
On Fri, Dec 14, 2012 at 5:04 PM, Konstantin M. evilzluk@gmail.com wrote:
No, I mean module independent.
2012/12/14 Juha Heinanen jh@tutpro.com
Konstantin M. writes:
I have a question: is there any internal built-in database
(hashtable or
something like that) that I can use ? I need a functionality: key->value (get/set).
check htable module.
-- juha
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
-- Carlos http://caruizdiaz.com +595981146623
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev