Re: [gnome-db] GdaSqlStatementType must be introspectable



If you see at libgda/Makefile.am, it defines sqlparser variable at
line 315, with the headers that GI must scan to create GIR file. I
found very hard to parse most of the internals of GdaSqlStatements
parts, and because we have GdaSqlBuilder developer doesn't need to
create that structure by hand, we avoid to scan
libgda/sql-parser/gda-sql-statement-struct-parts.h

But Gda.SqlBuilder.add_cond, requires GdaSqlStatementType to add new
conditions or operation to a query, we need to make GI can parse it.
On master that method is tagged as introspectable="0" in GIR because
GdaSqlStatementType is missing.

2011/10/11 Murray Cumming <murrayc murrayc com>:
> On Tue, 2011-10-11 at 18:00 -0500, Daniel Espinosa wrote:
>> See at Bug #661504, reproduced here:
>>
>> GdaSqlStatementType is defined at
>> libgda/sql-parser/gda-sql-statement-struct-parts.h
>>
>> but that file is not parsed on GIR generation.
>
> Why not?
>
>>  We have to include
>> GdaSqlStatementType in order get GdaSqlBuilder bindable through GI.
>>
>> We can proceed by:
>>
>> 1) Move that definition to a new file and include it from GdaSqlBuider and
>> GdaSqlStatement
>>
>> 2) Move that definition to other file in the tree.
>>
>> Do you agree to create a file called:
>>
>> libgda/sql-parser/gda-sql-statement-struct-decl.h
>>
>> Move GdaSqlStatementType definition, and potentially any difinition in
>> parts required to be introspectable?
>
> Why does GIR need libgda to change its header structure?
>
> --
> murrayc murrayc com
> www.murrayc.com
> www.openismus.com
>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]