typedef struct _Property
{
- EDBus_Property *property;
+ const EDBus_Property *property;
Eina_Bool is_invalidate:1;
} Property;
static void
_introspect_append_interface(Eina_Strbuf *buf, EDBus_Service_Interface *iface)
{
- EDBus_Method *method;
+ const EDBus_Method *method;
Property *prop;
Eina_Iterator *iterator;
unsigned short i;
}
static Eina_Bool
-_edbus_service_method_add(EDBus_Service_Interface *interface, EDBus_Method *method)
+_edbus_service_method_add(EDBus_Service_Interface *interface,
+ const EDBus_Method *method)
{
EINA_SAFETY_ON_TRUE_RETURN_VAL(!!eina_hash_find(interface->methods,
method->member), EINA_FALSE);
}
static Eina_Bool
-_edbus_service_property_add(EDBus_Service_Interface *interface, EDBus_Property *property)
+_edbus_service_property_add(EDBus_Service_Interface *interface,
+ const EDBus_Property *property)
{
Property *p;
EINA_SAFETY_ON_TRUE_RETURN_VAL(!!eina_hash_find(interface->properties,
property->name), EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(property->type, EINA_FALSE);
EINA_SAFETY_ON_FALSE_RETURN_VAL(
- dbus_signature_validate_single(property->type, NULL), EINA_FALSE);
+ dbus_signature_validate_single(property->type, NULL), EINA_FALSE);
p = calloc(1, sizeof(Property));
EINA_SAFETY_ON_NULL_RETURN_VAL(p, EINA_FALSE);
{
EDBus_Service_Object *obj;
EDBus_Service_Interface *iface;
- EDBus_Method *method;
- EDBus_Property *property;
+ const EDBus_Method *method;
+ const EDBus_Property *property;
Eina_Array *signatures;
EINA_SAFETY_ON_NULL_RETURN_VAL(conn, EINA_FALSE);
if (!iface)
goto fail;
- for (method = (EDBus_Method *)desc->methods; method && method->member; method++)
+ for (method = desc->methods; method && method->member; method++)
_edbus_service_method_add(iface, method);
iface->signals = desc->signals;
iface->sign_of_signals = signatures;
- for (property = (EDBus_Property *)desc->properties;
- property && property->name; property++)
+ for (property = desc->properties; property && property->name; property++)
_edbus_service_property_add(iface, property);
iface->get_func = desc->default_get;
{
EDBus_Service_Object *obj;
EDBus_Service_Interface *iface;
- EDBus_Method *method;
+ const EDBus_Method *method;
EDBus_Message *edbus_msg;
EDBus_Message *reply;