summaryrefslogtreecommitdiff
path: root/legacy/edbus/src/examples/simple-signal-emit.c
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@profusion.mobi>2012-11-01 16:41:04 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-11-01 16:41:04 +0000
commit5719e45bbd541b671a21d1bfe79275982db84bcf (patch)
treef9dd7dc5211d10ac437e546bc5608c07587ed182 /legacy/edbus/src/examples/simple-signal-emit.c
parent71ab3d6a17f0a5026a0e2815150a2471dc426a66 (diff)
edbus: Use separate struct for description of Service Interface
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 78801
Diffstat (limited to 'legacy/edbus/src/examples/simple-signal-emit.c')
-rw-r--r--legacy/edbus/src/examples/simple-signal-emit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/legacy/edbus/src/examples/simple-signal-emit.c b/legacy/edbus/src/examples/simple-signal-emit.c
index a9574d3d29..e1e48165c6 100644
--- a/legacy/edbus/src/examples/simple-signal-emit.c
+++ b/legacy/edbus/src/examples/simple-signal-emit.c
@@ -56,6 +56,10 @@ static void emit_alive(EDBus_Service_Interface *iface)
56 edbus_service_signal_emit(iface, TEST_SIGNAL_ALIVE); 56 edbus_service_signal_emit(iface, TEST_SIGNAL_ALIVE);
57} 57}
58 58
59static const EDBus_Service_Interface_Desc iface_desc = {
60 "org.enlightenment.Test", NULL, test_signals
61};
62
59int main(void) 63int main(void)
60{ 64{
61 EDBus_Connection *conn; 65 EDBus_Connection *conn;
@@ -64,8 +68,8 @@ int main(void)
64 edbus_init(); 68 edbus_init();
65 69
66 conn = edbus_connection_get(EDBUS_CONNECTION_TYPE_SESSION); 70 conn = edbus_connection_get(EDBUS_CONNECTION_TYPE_SESSION);
67 iface = edbus_service_interface_register( 71 iface = edbus_service_interface_register(conn, "/org/enlightenment",
68 conn, "/org/enlightenment", "org.enlightenment.Test", NULL, test_signals); 72 &iface_desc);
69 73
70 emit_alive(iface); 74 emit_alive(iface);
71 emit_name(iface); 75 emit_name(iface);