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 678539 - Wish: g_dbus_object_manager_server_is_exported()
Wish: g_dbus_object_manager_server_is_exported()
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gdbus
2.33.x
Other Linux
: Normal enhancement
: ---
Assigned To: David Zeuthen (not reading bugmail)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-06-21 13:37 UTC by Matthew Barnes
Modified: 2012-06-22 03:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (3.43 KB, patch)
2012-06-21 13:37 UTC, Matthew Barnes
committed Details | Review

Description Matthew Barnes 2012-06-21 13:37:07 UTC
Created attachment 216915 [details] [review]
Proposed patch

Had a use case come up in Evolution-Data-Server where I needed to determine whether a GDBusObjectSkeleton was currently exported and skip some action if it's not exported.

GDBusObjectManagerServer knows this but doesn't share.

I was able to determine the export state by other means, but it would be nice to just ask the object manager server directly.

Internally this just looks up an object path in the "map_object_path_to_data" hash table and returns TRUE if it gets a hit.
Comment 1 David Zeuthen (not reading bugmail) 2012-06-21 17:17:56 UTC
Sure, makes sense to me. Please commit.