GNOME Bugzilla – Bug 649821
Missing gio.h or unnecessary code
Last modified: 2011-07-18 08:01:42 UTC
Hi, If I have a class foo that has a dbus interface (using GDBus), and I pass this class as a parameter for the constructor of another class that doesn't have a dbus interface (named bar), the generated C code for bar has the following snippet: guint foo_register_object(void *object, GDBusConnection *connection, const gchar* path, GError *error). Which is never used and fails to compile because bar.c doesn't include gio.h. I'm not sure if the gio.h include is missing or the register object function is unnecessary.
*** This bug has been marked as a duplicate of bug 654782 ***