edbus: add son in server example for tests
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 12 Nov 2012 16:15:43 +0000 (16:15 +0000)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 12 Nov 2012 16:15:43 +0000 (16:15 +0000)
SVN revision: 79180

src/examples/server.c

index ac3ed8f..098ab48 100644 (file)
@@ -3,6 +3,7 @@
 
 #define BUS "org.Enlightenment"
 #define PATH "/org/enlightenment"
+#define PATH_TEST_SON "/org/enlightenment/son"
 #define INTERFACE "org.enlightenment.Test"
 
 EDBus_Connection *conn;
@@ -232,6 +233,8 @@ main(void)
    edbus_name_request(conn, BUS, EDBUS_NAME_REQUEST_FLAG_DO_NOT_QUEUE,
                       on_name_request, iface);
 
+   edbus_service_interface_register(conn, PATH_TEST_SON, &iface_desc);
+
    ecore_main_loop_begin();
 
    edbus_connection_unref(conn);