Re: Wrapping of C structs
- From: Jonathon Jongsma <jonathon quotidian org>
- To: gtkmm-list gnome org
- Subject: Re: Wrapping of C structs
- Date: Thu, 05 Jun 2008 09:48:03 -0500
On Thu, 2008-06-05 at 16:36 +0200, Johannes Schmid wrote:
> Hi!
>
> I am currently working on wrapping libgda-4.0 but I ran into some
> problems as libgda-4.0 uses some simple C structures (not
> GObject-derived) for storing data.
>
> For example:
>
> typedef struct {
> gchar *table_name;
> gint size;
> gchar **column_names;
> GValue **column_values;
> } GdaMetaContext;
>
> Currently I just typedef those to match the C++ namespace but maybe there is a better solution.
One option might be to use something like _CLASS_GENERIC and then wrap
the data members using _MEMBER_GET/_MEMBER_SET
--
Jonner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]