static void app_pause(void *data)
{
- // Empty
+ state_change_event(APP_PAUSE);
}
static void app_resume(void *data)
{
- // Empty
+ state_change_event(APP_RESUME);
}
static void app_terminate(void *data)
{
- // Empty
+ state_change_event(APP_TERMINATE);
}
int main(int argc, char *argv[])
} else if (!strcmp(ALLOWED_DEVICE_LIST_TEXT, type)) {
for (index = 0; index <= permitted_devices_index; index++){
if (permitted_devices_info[index] != NULL) {
- elm_genlist_item_append(list, device_item_builder, permitted_devices_info[index], it, ELM_GENLIST_ITEM_NONE, device_list_select_cb, discovered_devices_info[index]);
+ elm_genlist_item_append(list, device_item_builder, permitted_devices_info[index], it, ELM_GENLIST_ITEM_NONE, device_list_select_cb, permitted_devices_info[index]);
}
}
} else if (!strcmp(DENIED_DEVICE_LIST_TEXT, type)) {
for (index = 0; index <= denied_devices_index; index++){
if (denied_devices_info[index] != NULL) {
- elm_genlist_item_append(list, device_item_builder, denied_devices_info[index], it, ELM_GENLIST_ITEM_NONE, device_list_select_cb, discovered_devices_info[index]);
+ elm_genlist_item_append(list, device_item_builder, denied_devices_info[index], it, ELM_GENLIST_ITEM_NONE, device_list_select_cb, denied_devices_info[index]);
}
}
}
case CHANGE_LANGUAGE :
elm_genlist_realized_items_update(group_list_item);
break;
+ case APP_PAUSE :
+ discovery_stop();
+ break;
+ case APP_RESUME :
+ set_acl_device_list();
+ break;
+ case APP_TERMINATE :
+ discovery_stop();
+ break;
default :
break;
}