#endif
static bool _mp_main_init(struct appdata *ad);
-//char *bundle_get_val(bundle *, char *);
int app_control_to_bundle(app_control_h, bundle **);
static void _mp_main_win_visibility_withdrawn_cb(void *data, Evas_Object *obj, void *event);
static void _mp_main_win_visibility_normal_cb(void *data, Evas_Object *obj, void *event);
struct appdata *ad = mp_util_get_appdata();
MP_CHECK_FALSE(ad);
- const char *value = bundle_get_val(b, MP_LB_EVENT_KEY);
+ char *value = NULL;
+ bundle_get_str(b, MP_LB_EVENT_KEY, &value);
if (value && strlen(value) > 0) {
*activate_window = false;
EVENT_TRACE("event: %s", value);
return true;
}
- value = bundle_get_val(b, MP_NOWPLAYING_LIST_INDEX);
+ value = NULL;
+ bundle_get_str(b, MP_NOWPLAYING_LIST_INDEX, &value);
if (value && strlen(value) > 0) {
EVENT_TRACE("index: %s", value);
ERROR_TRACE("Unable to add data to bundle");
return -1;
}
- bundle_add(b, MP_LB_EVENT_KEY, event);
+ bundle_add_str(b, MP_LB_EVENT_KEY, event);
ret = message_port_send_message(APP_ID, MP_MESSAGE_PORT_LIVEBOX, b);
if (ret != MESSAGE_PORT_ERROR_NONE) {
ERROR_TRACE("Message remote port error: %d", ret);