[Kamailio-Devel] RFC: database interface module infrastructure

Henning Westerholt henning.westerholt at 1und1.de
Tue Aug 12 12:26:28 CEST 2008


On Tue, August 12, 2008 9:58 am, Daniel-Constantin Mierla wrote:
>> [..]
>> But before i go further in this direction i want to ask if you think
>> that going this way makes sense. I've attached my proposal for
>> autogenerated DB functions for the auth_db module for your review.
>
> this really will help a lot. Every developers forgets to add as
> parameters the new columns he/she adds. As the example you attached
> seems to be the .c file, the .h should include external declarations of
> table and columns name, prototype for the functions that can be use
> outside of the object and a macro like MODULE_DB_PARAMETERS that will
> have the list with table and columns names in the form the module
> interface expects for including them as parameters.

Hi Daniel,

thank you for your comments. I also thought about to generate the
parameter definitions for the module interface. Another thing that could
be added is the generation of the documentation for the configuration. I
did not split it in two files so far because of simplicity reasons for the
XSL.

Perhaps I'll commit later what I've got so far and further refine it in
the next weeks. I did not want to change to much at once. What do you
think?

Any other opinions? Cheers,

Henning




More information about the Devel mailing list