Re: [Vala] gnome-db - binding problems



Hans Vercammen wrote:
On Tue, 2009-01-20 at 14:39 +0100, Frederik wrote:
How did you bind 'libsql/sql_parser.h'? It has unions and stuff. :(

The internals in v4 have changed significantly. I didn't check into the
unions generation, but these do not seem to exist anymore. It's a bit
odd. I get an error for v3:

/usr/include/libgda-3.0/libsql/sql_parser.h:122: syntax error, unexpected typedef-name, expecting 
identifier or '('
/usr/include/libgda-3.0/libsql/sql_parser.h:297: syntax error, unexpected typedef-name, expecting ')'
/usr/include/libgda-3.0/libsql/sql_parser.h:298: syntax error, unexpected typedef-name, expecting ')'
/usr/include/libgda-3.0/libsql/sql_parser.h:298: syntax error, unexpected ')', expecting ',' or ';'

sql_parser.h in v3 is not a GObject header file. I have manually created
a 'sql-parser.vapi' which currently contains some compact class stubs.

I have tried to add 'include/libgda-3.0/libsql/sql_parser.h' to
'libgda-3.0.excludes', but v-g-i still tries to parse it.


Regards,

Frederik



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