Functions | |
Eina_Bool | eldbus_proxy_properties_monitor (Eldbus_Proxy *proxy, Eina_Bool enable) |
Enable or disable local cache of properties. More... | |
Eldbus_Pending * | eldbus_proxy_property_get (Eldbus_Proxy *proxy, const char *name, Eldbus_Message_Cb cb, const void *data) |
Eldbus_Pending * | eldbus_proxy_property_set (Eldbus_Proxy *proxy, const char *name, const char *sig, const void *value, Eldbus_Message_Cb cb, const void *data) |
Eldbus_Pending * | eldbus_proxy_property_get_all (Eldbus_Proxy *proxy, Eldbus_Message_Cb cb, const void *data) |
Eldbus_Signal_Handler * | eldbus_proxy_properties_changed_callback_add (Eldbus_Proxy *proxy, Eldbus_Signal_Cb cb, const void *data) |
Eina_Value * | eldbus_proxy_property_local_get (Eldbus_Proxy *proxy, const char *name) |
Return the cached value of property. More... | |
const Eina_Hash * | eldbus_proxy_property_local_get_all (Eldbus_Proxy *proxy) |
Return a Eina_Hash with all cached properties. More... | |
Eina_Bool eldbus_proxy_properties_monitor | ( | Eldbus_Proxy * | proxy, |
Eina_Bool | enable | ||
) |
Enable or disable local cache of properties.
After enable you can call eldbus_proxy_property_local_get() or eldbus_proxy_property_local_get_all() to get cached properties.
proxy | bus+path+interface that the properties belong |
enable | enable or disable properties monitor |
References EAPI, EINA_FALSE, eina_hash_free(), eina_hash_population(), eina_hash_string_superfast_new(), EINA_TRUE, eldbus_proxy_event_callback_add(), and eldbus_signal_handler_unref().
Eina_Value* eldbus_proxy_property_local_get | ( | Eldbus_Proxy * | proxy, |
const char * | name | ||
) |
Return the cached value of property.
This only work if you have enable eldbus_proxy_properties_monitor or if you have call eldbus_proxy_event_callback_add of type ELDBUS_PROXY_EVENT_PROPERTY_CHANGED and the property you want had changed.
References EAPI, and eina_hash_find().
const Eina_Hash* eldbus_proxy_property_local_get_all | ( | Eldbus_Proxy * | proxy | ) |
Return a Eina_Hash with all cached properties.
This only work if you have enable eldbus_proxy_properties_monitor or if you have call eldbus_proxy_event_callback_add of type ELDBUS_PROXY_EVENT_PROPERTY_CHANGED.