Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/e_dbus
Dir : e17/libs/e_dbus/src/lib/dbus
Modified Files:
e_dbus_interfaces.c e_dbus_object.c
Log Message:
stefan's nm patches for edbus.
===================================================================
RCS file: /cvs/e/e17/libs/e_dbus/src/lib/dbus/e_dbus_interfaces.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_dbus_interfaces.c 4 Nov 2007 07:51:36 -0000 1.2
+++ e_dbus_interfaces.c 9 Mar 2008 16:08:42 -0000 1.3
@@ -6,6 +6,15 @@
* objects on the bus should implement.
*/
+/**
+ * Ping the dbus peer
+ *
+ * @param conn the dbus connection
+ * @param destination the bus name that the object is on
+ * @param path the object path
+ * @param cb_return a callback for a successful return
+ * @param data data to pass to the callbacks
+ */
EAPI void
e_dbus_peer_ping(E_DBus_Connection*conn, const char *destination, const char
*path, E_DBus_Method_Return_Cb cb_return, void *data)
{
@@ -15,6 +24,15 @@
e_dbus_message_send(conn, msg, cb_return, -1, data);
}
+/**
+ * Get the UUID of the peer
+ *
+ * @param conn the dbus connection
+ * @param destination the bus name that the object is on
+ * @param path the object path
+ * @param cb_return a callback for a successful return
+ * @param data data to pass to the callbacks
+ */
EAPI void
e_dbus_peer_get_machine_id(E_DBus_Connection*conn, const char *destination,
const char *path, E_DBus_Method_Return_Cb cb_return, void *data)
{
@@ -23,7 +41,6 @@
msg = dbus_message_new_method_call(destination, path,
"org.freedesktop.DBus.Peer", "GetMachineId");
e_dbus_message_send(conn, msg, cb_return, -1, data);
}
-
/**
* Get the value of a property on an object
===================================================================
RCS file: /cvs/e/e17/libs/e_dbus/src/lib/dbus/e_dbus_object.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_dbus_object.c 24 Nov 2007 13:22:03 -0000 1.3
+++ e_dbus_object.c 9 Mar 2008 16:08:42 -0000 1.4
@@ -172,7 +172,7 @@
{
if (introspectable_interface)
e_dbus_interface_unref(introspectable_interface);
introspectable_interface = NULL;
- if (properties_interface) e_dbus_interface_unref(introspectable_interface);
+ if (properties_interface) e_dbus_interface_unref(properties_interface);
properties_interface = NULL;
return 0;
}
@@ -188,6 +188,9 @@
{
e_dbus_interface_unref(introspectable_interface);
introspectable_interface = NULL;
+
+ e_dbus_interface_unref(properties_interface);
+ properties_interface = NULL;
}
/**
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs