After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 646419 - g_dbus_connection_register_object() docs should explain NULL vtable
g_dbus_connection_register_object() docs should explain NULL vtable
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gdbus
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: David Zeuthen (not reading bugmail)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-04-01 08:31 UTC by Murray Cumming
Modified: 2011-04-02 13:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Murray Cumming 2011-04-01 08:31:27 UTC
g_dbus_connection_register_object() is documented as accepting a NULL vtable
  http://library.gnome.org/devel/gio/unstable/GDBusConnection.html#g-dbus-connection-register-object
but it doesn't say why you would want to do that. I don't see the point of registering an object that has no API.
Comment 1 David Zeuthen (not reading bugmail) 2011-04-01 13:43:28 UTC
I think I was thinking "marker interfaces" when I wrote this.

 http://en.wikipedia.org/wiki/Marker_interface_pattern
Comment 2 Matthias Clasen 2011-04-01 15:49:17 UTC
Might be good to mention the 'marker interface' pattern in the docs then.