Help! What to do with records in GObject Introspection?

Banana Fool <[email protected]>
Newsgroups gmane.comp.gnome.love
Message-ID <CA+=POYNtfaBbPg=7Hm7ZbVuZ5YU1JAGJ86Sf7SfhP+560v1Lgw@mail.gmail.com>
I'm writing a C++ wrapper generator for GObject, as I'm dissatisfied
with GTKmm because it always lacks bindings I need. My generator can
already generate bindings for constants and enums. Now I'm trying to
do bindings for records.

I'm very confused with records like GIOChannel. In .gir files there is
no clue how to manage them. Can I just g_malloc and g_free them?
Should I use their own ref and unref functions?

The source is located here:
https://gitorious.org/gobjectxx/gobjectxx/trees/master/genxx
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.