Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/bin


Modified Files:
        ecore_dbus_receiver_test.c ecore_dbus_test.c 


Log Message:

small cleanups
api change on _new_error()

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/bin/ecore_dbus_receiver_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ecore_dbus_receiver_test.c  27 Sep 2006 00:02:30 -0000      1.2
+++ ecore_dbus_receiver_test.c  27 Sep 2006 23:37:01 -0000      1.3
@@ -9,7 +9,6 @@
 static int ecore_dbus_event_server_del(void *udata, int ev_type, void *ev);
 static int ecore_dbus_event_method_call(void *udata, int ev_type, void *ev);
 
-static void ecore_dbus_method_add_match_cb(void *data, 
Ecore_DBus_Method_Return *reply);
 static void ecore_dbus_method_error_cb(void *data, const char *error);
 
 static void _test_object_init(Ecore_DBus_Server *svr);
@@ -90,12 +89,6 @@
 }
 
 static void
-ecore_dbus_method_add_match_cb(void *data, Ecore_DBus_Method_Return *reply)
-{
-   printf("Match added. Should be listening for method calls now.\n");
-}
-
-static void
 ecore_dbus_method_error_cb(void *data, const char *error)
 {
    printf("Error: %s\n", error);
@@ -106,7 +99,23 @@
 static void
 _test_object_test(Ecore_DBus_Event_Method_Call *event)
 {
+   Ecore_DBus_Message *msg;
+   unsigned int *i;
+   char *s;
+
    printf("received call to test!\n");
+   msg = event->message;
+
+   i = (unsigned int *)ecore_dbus_message_body_field_get(msg, 0);
+   s = (char *)ecore_dbus_message_body_field_get(msg, 1);
+
+   if (!i || !s) 
+   {
+      /* XXX reply with error */
+      return;
+   }
+
+   printf("    params: i = %d, s = \"%s\"\n", i ? *i : 0, s);
 }
 
 static void
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/bin/ecore_dbus_test.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ecore_dbus_test.c   27 Sep 2006 00:02:30 -0000      1.13
+++ ecore_dbus_test.c   27 Sep 2006 23:37:01 -0000      1.14
@@ -66,7 +66,8 @@
                                      "org.enlightenment.Test" /*destination*/,
                                      ecore_dbus_method_test_cb,
                                      ecore_dbus_method_error_cb, NULL,
-                                     NULL /*fmt*/);
+                                     "us" /*fmt*/,
+                                     5, "hello");
    return 0;
 }
 



-------------------------------------------------------------------------
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