[Gtk-sharp-list] Wrapping API Question
16 Feb 2003 01:14:43 -0600
On Thu, 2003-02-13 at 23:48, Charles Iliya Krempeaux wrote:
> I thought I'd try out wrapping an API. (I starting doing
> Now, when I did this, the gapi.pl program seems to be looking
> for .c files.
> So... what exactly do I need when wrapping an API? Do I need
> to get the complete source code (to the library)? (I.e.,
> all the .h and .c files?)
Yes, you need the .c files because "The GObject Way" is to expose
signals and properties via a class_init function. The signal prototypes
are specified in the header, but the only way to know they are really
signals (and not just virtual methods) is to parse the class_init
function where the signals are registered. GObject properties aren't
even exposed in the headers.
Mike Kestner <email@example.com>