Re: GObject introspection
- From: Jens Georg <mail jensge org>
- To: "Zeeshan Ali (Khattak)" <zeenix gmail com>
- Cc: gupnp-list gnome org
- Subject: Re: GObject introspection
- Date: Sat, 14 May 2011 14:15:56 +0200
On Do, 2011-05-12 at 18:15 +0300, Zeeshan Ali (Khattak) wrote:
> > Ok, looks like I missed an option. Renaming the vfuncs. Am I right that
> > this is internal API or is anyone deriving from DeviceProxy/DeviceInfo
> > and reimplementing those? Sven, any comment?
>
> Its not internal but I seriously doubt anyone is deriving from these
> classes on the high-level through GIR.
>
Ok, apparently one can pass preprocessor flags to g-ir-scanner; what I
did now is which would hide the vfuncs from GIR:
typedef struct {
GObjectClass parent_class;
/* vtable */
xmlNode * (* get_element) (GUPnPDeviceInfo *info);
/* FIXME: Once we can break API/ABI, clean-up and rename the
* _get_device/_get_service functions */
#ifndef GIR_SKIP
GUPnPDeviceInfo * (* get_device) (GUPnPDeviceInfo *info,
xmlNode *element);
/*< private >*/
GUPnPServiceInfo * (* get_service) (GUPnPDeviceInfo *info,
xmlNode *element);
#endif
/* future padding */
void (* _gupnp_reserved1) (void);
void (* _gupnp_reserved2) (void);
void (* _gupnp_reserved3) (void);
void (* _gupnp_reserved4) (void);
} GUPnPDeviceInfoClass;
Which seems to work. Any objections?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]