GNOME Bugzilla – Bug 607532
Inheriting D-Bus interfaces from another file generates invalid C
Last modified: 2010-10-13 22:23:46 UTC
Created attachment 151820 [details] Test case Creating a D-Bus interface which requires a D-Bus interface from another file will generate invalid C. The attached test case will result in the following errors: /home/nemequ/t/dbus-foo.vala.c: In function ‘foo_dbus_proxy_do_something’: /home/nemequ/t/dbus-foo.vala.c:387: warning: incompatible implicit declaration of built-in function ‘strstr’ /home/nemequ/t/dbus-test.vala.c: In function ‘bar_dbus_proxy_do_something’: /home/nemequ/t/dbus-test.vala.c:430: error: ‘FooDBusProxy’ undeclared (first use in this function) /home/nemequ/t/dbus-test.vala.c:430: error: (Each undeclared identifier is reported only once /home/nemequ/t/dbus-test.vala.c:430: error: for each function it appears in.) /home/nemequ/t/dbus-test.vala.c:430: error: expected expression before ‘)’ token error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s) Currently working around the issue by putting them in the same file.
Created attachment 152042 [details] [review] Allows implementing DBus interfaces in different files Fixes bug 607532.
Comment on attachment 152042 [details] [review] Allows implementing DBus interfaces in different files The patch misses header declarations for the new is_disposed function in the case that the interface is public. Do you want to finish the patch or drop it now that the focus is on GDBus anyway?
Resolving as obsolete as dbus-glib support is deprecated. Feel free to reopen it if someone is interested in contributing a finished patch.