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 646417 - g_dbus_node_info_lookup_interface(info, NULL) could return the only (or first) interface
g_dbus_node_info_lookup_interface(info, NULL) could return the only (or first...
Status: RESOLVED OBSOLETE
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:21 UTC by Murray Cumming
Modified: 2018-05-24 13:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Murray Cumming 2011-04-01 08:21:33 UTC
It would be convenient if g_dbus_node_info_lookup_interface() could return the first, or only, interface that it finds, to slightly simplify code that only registers one interface.
Comment 1 David Zeuthen (not reading bugmail) 2011-04-01 13:47:24 UTC
You mean that lookup_interface() should accept a NULL name and return the first interface it finds in that case? I don't like that since you can just as easily do

 iface = node->interfaces != NULL ? node->interfaces[0] : NULL;
Comment 2 Murray Cumming 2011-04-02 13:16:27 UTC
Well, it seems like the function is meant to be a convenience, so it could be even more convenient.

But I didn't actually realized that you mean for the bare struct members to be public API so I'll just improve this method in the C++ API instead if you object to doing it in the C API's function.
Comment 3 GNOME Infrastructure Team 2018-05-24 13:00:40 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/400.