dbus/glib dbus-gmain.c,1.49,1.50
John Palmieri
johnp at freedesktop.org
Wed Feb 15 13:42:56 PST 2006
- Previous message: dbus/test/qt Makefile.am, 1.3, 1.4 tst_hal.cpp, NONE,
1.1 tst_qdbusconnection.cpp, 1.3, 1.4 tst_qdbusinterface.cpp,
NONE, 1.1 tst_qdbusobject.cpp, NONE, 1.1 tst_qdbustype.cpp,
NONE, 1.1 tst_qdbusxmlparser.cpp, NONE, 1.1
- Next message: dbus/dbus dbus-glib.h,1.21,1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/dbus/dbus/glib
In directory gabe:/tmp/cvs-serv28791/glib
Modified Files:
dbus-gmain.c
Log Message:
2006-02-15 John (J5) Palmieri <johnp at redhat.com>
* dbus/dbus-glib.h:
* glib/dbus-gmain.h:
(dbus_g_connection_open): new method for openning
a connection to an arbitrary address in the glib bindings
* ChangeLog: checkin last entry which doesn't seem to be commited
Index: dbus-gmain.c
===================================================================
RCS file: /cvs/dbus/dbus/glib/dbus-gmain.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- dbus-gmain.c 13 Feb 2006 22:30:11 -0000 1.49
+++ dbus-gmain.c 15 Feb 2006 21:42:54 -0000 1.50
@@ -697,6 +697,43 @@
}
/**
+ * Returns a connection to the given address.
+ *
+ * (Internally, calls dbus_connection_open() then calls
+ * dbus_connection_setup_with_g_main() on the result.)
+ *
+ * @param address address of the connection to open
+ * @param error address where an error can be returned.
+ * @returns a DBusConnection
+ */
+DBusGConnection*
+dbus_g_connection_open (const gchar *address,
+ GError **error)
+{
+ DBusConnection *connection;
+ DBusError derror;
+
+ g_return_val_if_fail (error == NULL || *error == NULL, NULL);
+
+ _dbus_g_value_types_init ();
+
+ dbus_error_init (&derror);
+
+ connection = dbus_connection_open (socket, &derror);
+ if (connection == NULL)
+ {
+ dbus_set_g_error (error, &derror);
+ dbus_error_free (&derror);
+ return NULL;
+ }
+
+ /* does nothing if it's already been done */
+ dbus_connection_setup_with_g_main (connection, NULL);
+
+ return DBUS_G_CONNECTION_FROM_CONNECTION (connection);
+}
+
+/**
* Returns a connection to the given bus. The connection is a global variable
* shared with other callers of this function.
*
- Previous message: dbus/test/qt Makefile.am, 1.3, 1.4 tst_hal.cpp, NONE,
1.1 tst_qdbusconnection.cpp, 1.3, 1.4 tst_qdbusinterface.cpp,
NONE, 1.1 tst_qdbusobject.cpp, NONE, 1.1 tst_qdbustype.cpp,
NONE, 1.1 tst_qdbusxmlparser.cpp, NONE, 1.1
- Next message: dbus/dbus dbus-glib.h,1.21,1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dbus-commit
mailing list