summaryrefslogtreecommitdiff
path: root/legacy/edbus/src/examples/complex_types_client_eina_value.c
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@profusion.mobi>2012-11-09 18:35:20 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-11-09 18:35:20 +0000
commit5169b73515105f484d5af42e072e740e380a40fc (patch)
treeaa30b196e9c5a26cd63941481efe81048284cb66 /legacy/edbus/src/examples/complex_types_client_eina_value.c
parentffc6f5cf9fdc774b9423e0aad234c240b6efee02 (diff)
edbus: Add invalidate to EDBus_Property
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 79036
Diffstat (limited to '')
-rw-r--r--legacy/edbus/src/examples/complex_types_client_eina_value.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/legacy/edbus/src/examples/complex_types_client_eina_value.c b/legacy/edbus/src/examples/complex_types_client_eina_value.c
index 2e9455f4ef..10e8f72663 100644
--- a/legacy/edbus/src/examples/complex_types_client_eina_value.c
+++ b/legacy/edbus/src/examples/complex_types_client_eina_value.c
@@ -148,6 +148,14 @@ on_plus_one(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
148} 148}
149 149
150static void 150static void
151_property_removed(void *data, EDBus_Proxy *proxy, void *event_info)
152{
153 EDBus_Proxy_Event_Property_Removed *event = event_info;
154
155 printf("\nproperty removed: %s", event->name);
156}
157
158static void
151_property_changed(void *data, EDBus_Proxy *proxy, void *event_info) 159_property_changed(void *data, EDBus_Proxy *proxy, void *event_info)
152{ 160{
153 EDBus_Proxy_Event_Property_Changed *event = event_info; 161 EDBus_Proxy_Event_Property_Changed *event = event_info;
@@ -266,6 +274,8 @@ main(void)
266 edbus_proxy_event_callback_add(proxy, 274 edbus_proxy_event_callback_add(proxy,
267 EDBUS_PROXY_EVENT_PROPERTY_CHANGED, 275 EDBUS_PROXY_EVENT_PROPERTY_CHANGED,
268 _property_changed, NULL); 276 _property_changed, NULL);
277 edbus_proxy_event_callback_add(proxy, EDBUS_PROXY_EVENT_PROPERTY_REMOVED,
278 _property_removed, NULL);
269 279
270 edbus_proxy_properties_monitor(proxy, EINA_TRUE); 280 edbus_proxy_properties_monitor(proxy, EINA_TRUE);
271 ecore_timer_add(10, _read_cache, proxy); 281 ecore_timer_add(10, _read_cache, proxy);