|
|
|
@ -351,8 +351,7 @@ static EDBus_Message * |
|
|
|
|
_e_msgbus_profile_list_cb(const EDBus_Service_Interface *iface __UNUSED__, |
|
|
|
|
const EDBus_Message *msg) |
|
|
|
|
{ |
|
|
|
|
Eina_List *l; |
|
|
|
|
const char *name; |
|
|
|
|
char *name; |
|
|
|
|
EDBus_Message *reply; |
|
|
|
|
EDBus_Message_Iter *array, *main_iter; |
|
|
|
|
|
|
|
|
@ -365,8 +364,11 @@ _e_msgbus_profile_list_cb(const EDBus_Service_Interface *iface __UNUSED__, |
|
|
|
|
edbus_message_iter_arguments_append(main_iter, "as", &array); |
|
|
|
|
EINA_SAFETY_ON_FALSE_RETURN_VAL(array, reply); |
|
|
|
|
|
|
|
|
|
EINA_LIST_FOREACH(e_config_profile_list(), l, name) |
|
|
|
|
edbus_message_iter_basic_append(array, 's', name); |
|
|
|
|
EINA_LIST_FREE(e_config_profile_list(), name) |
|
|
|
|
{ |
|
|
|
|
edbus_message_iter_basic_append(array, 's', name); |
|
|
|
|
free(name); |
|
|
|
|
} |
|
|
|
|
edbus_message_iter_container_close(main_iter, array); |
|
|
|
|
|
|
|
|
|
return reply; |
|
|
|
|