DBusGProxy as parent gobject

Gary Kramlich grim at reaperworld.com
Fri Dec 30 14:11:12 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Havoc Pennington wrote:
> On Thu, 2005-12-29 at 10:08 +0200, Ricardo Kekki wrote:
> 
>>Hi
>>I'm trying to use DBusGProxy as a parent gobject for my own gobject.
>>This doesn't work because the definition of "struct _DBusGProxy" is
>>hidden in the dbus-gproxy.c file.
>>
>>Is there a reason that the DBusGProxy is not wanted to be inherited?
> 
> 
> APIs are normally designed the other way around, things are only public
> if there's a reason for them to be ;-)
> 
> Can you tell us about what you're doing and why you want to derive from
> DBusGProxy?
> 
> Havoc

For what it's worth, you can man a GObject derivable without exposing
any of it's members by adding a "Private" member to the public struct
and only define that structure in the source file, and not the header as
well.  Basically, how it's defined now, but instead of the whole
structure being defined in the C file, only the private structure would
be defined in the C file.

- --
Gary Kramlich <grim at reaperworld.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDtbCAdf4lmqisgDIRAiQ1AJ0ZAihHWlIyugWvGvEQm+eWh1+z7wCeIbN5
KKuaJnolpATjFw2ZR1FFmdk=
=EdWJ
-----END PGP SIGNATURE-----


More information about the dbus mailing list