On 13 February 2012 21:33, Daniel Espinosa <[email protected]> wrote: > I'm trying to figure out how to make easy for bindings to use MetaStore > and MetaContext. > > GdaMetaContext is a pure C struct with arrays of strings and values, but > are hard for bindings because is not clear how to set its members. At > first, I've tried to add simple API to it by commit: > > > http://git.gnome.org/browse/libgda/commit/?id=ba3f677d5fe3445ea1bf9a04d50bc069545969a7(I > have minor fixes for return values ready to commit) > > But it requires to change some GdaConnection related functions to work. > But even that I found that GdaMetaContext is not defined as a GBoxed and > GIR doesn't like that for new gda_meta_context_new method, tagging it as > Not Introspectable!!!! This is a problem for bindings, you can't create a > context any way. > > Are there any reason to not change GdaMetaContext to GBoxed? >
AFAIK you can use g_boxed_type_register_static() to declare a GType for GdaMetaStruct, so no problem here for me, it only adds some API. What I want to make sure is: - 5.2 will remain API and ABI compatible with 5.0 - we don't modify "too much" the GdaMetaStore and GdaConnection's related code because it's fairly complicated and I think that it will be easier for bindings to create a new API and bind this new API, hiding the existing complicated API from bindings. Regards, Vivien
_______________________________________________ gnome-db-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-db-list
