#include <glib.h>
#include <glib/gprintf.h>
+#include <app_control.h>
#include <media_controller_client.h>
#include "media_controller_private.h"
return TRUE;
}
+#if 0
+static int _test_app_launch()
+{
+ int ret = APP_CONTROL_ERROR_NONE;
+
+ app_control_h app_control;
+
+ g_print("== _test_app_launch \n");
+
+ ret = app_control_create(&app_control);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ g_print("Fail to app_control_create \n");
+
+ ret = app_control_set_operation(app_control, APP_CONTROL_OPERATION_MEDIA_CONTROLLER);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ g_print("Fail to app_control_set_operation \n");
+
+ ret = app_control_add_extra_data(app_control, APP_CONTROL_DATA_TYPE, "server"); //or app_control_add_extra_data(service, APP_CONTROL_DATA_TYPE, "client");
+ if (ret != APP_CONTROL_ERROR_NONE)
+ g_print("Fail to app_control_add_extra_data \n");
+ ret = app_control_set_uri(app_control, "test-path");
+ if (ret != APP_CONTROL_ERROR_NONE)
+ g_print("Fail to app_control_set_uri \n");
+
+ ret = app_control_set_app_id(app_control, "org.example.musicplayerui");
+ if (ret != APP_CONTROL_ERROR_NONE)
+ g_print("Fail to app_control_set_app_id \n");
+
+ ret = app_control_send_launch_request(app_control, NULL, NULL);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ g_print("Fail to app_control_send_launch_request \n");
+
+ ret = app_control_destroy(app_control);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ g_print("Fail to app_control_destroy \n");
+
+ g_print("== _test_app_launch end \n");
+ return 0;
+}
+#endif
/***************************************************************/
/** Testsuite */
/***************************************************************/
mainloop = g_main_loop_new(NULL, FALSE);
+ //_test_app_launch();
display_menu();
g_main_loop_run(mainloop);