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 665561 - non-blocking g_bus_get variant
non-blocking g_bus_get variant
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gdbus
unspecified
Other All
: Normal normal
: ---
Assigned To: David Zeuthen (not reading bugmail)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-12-05 00:21 UTC by Allison Karlitskaya (desrt)
Modified: 2018-05-24 13:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2011-12-05 00:21:08 UTC
would be nice to have a g_bus_get() variant that allowed you to get a ref on a shared bus if it already existed, or returned NULL otherwise.

it would never block, and never fail, and would return immediately -- either with a GDBusConnection, or NULL.

i've found myself wanting this a few times now in situations where i know that the connection already exists (and don't want to make it look like i'm doing a blocking call) or in situations where i want to behave in a certain way, or not, depending on if the bus has already been connected to.
Comment 1 GNOME Infrastructure Team 2018-05-24 13:34:16 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/486.