[sr-dev] Internal database

Konstantin M. evilzluk at gmail.com
Sat Dec 15 21:01:37 CET 2012


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 at 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 at 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 at 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 at gmail.com>
>>> wrote:
>>> > No, I mean module independent.
>>> >
>>> >
>>> > 2012/12/14 Juha Heinanen <jh at 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 at lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>>>
>>
>>
>> _______________________________________________
>> sr-dev mailing list
>> sr-dev at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20121215/df6c457b/attachment.htm>


More information about the sr-dev mailing list