Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : proto

Dir     : e17/proto/e_dbus/src/bin


Modified Files:
        test.c 


Log Message:

request a name on the bus

===================================================================
RCS file: /cvs/e/e17/proto/e_dbus/src/bin/test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- test.c      22 Mar 2007 04:07:29 -0000      1.3
+++ test.c      22 Mar 2007 15:10:41 -0000      1.4
@@ -61,11 +61,19 @@
   return reply;
 }
 
+void
+cb_request_name(void *data, DBusMessage *msg, DBusError *err)
+{
+  // XXX check that this actually succeeded and handle errors...
+  printf("request name\n");
+}
+
 int
 _setup(E_DBus_Connection *conn)
 {
   E_DBus_Object *repeater;
   E_DBus_Interface *iface;
+  e_dbus_request_name(conn, "org.e.Repeater", 0, cb_request_name, NULL);
   repeater = e_dbus_object_add(conn, "/org/e/Repeater", NULL);
   iface = e_dbus_interface_new("org.e.Repeater");
   e_dbus_interface_method_add(iface, "Repeat", NULL, NULL, cb_repeat);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to