Created attachment 22042 [details] [review]
dbus_bus_get_private is not exposed in dbus-glib.
* Small typo, should be "returns DBusGConnection".
* Could use at least one test too.
I now see that the documentation part was a bit too hasty:
+ * Returns a connection to the given bus. The connection is a global variable
+ * shared with other callers of this function.
Should probably have stated that
+ * Returns a connection to the given bus. The connection will be a private
+ * non-shared connection, that the caller should close when not used anymore.
I spent more time in testing the wrapper than finewriting the documentation
*** This bug has been marked as a duplicate of bug 10095 ***
Comment on attachment 22042 [details] [review]
Tweaked the documentation and pushed:
Author: Stian Skjelstad <firstname.lastname@example.org>
Date: Fri Sep 18 14:01:00 2009 -0400
Bug 19623 - Add dbus_g_bus_get_private
Useful for cases where you have to get a private connection, among
them to work around threading issues.
Signed-off-by: Colin Walters <email@example.com>
*** Bug 23722 has been marked as a duplicate of this bug. ***