Evas_Object *util_add_toast(Evas_Object *parent, char *text);
void util_draw_channel_info(Evas_Object *obj,
const struct tv_channel_info *channel_info);
+void util_launch_home(void);
#endif
* limitations under the License.
*/
+#include <app.h>
#include <Elementary.h>
#include <app_debug.h>
+#include <app_define.h>
#include <viewmgr.h>
#include "define.h"
UPDATE_TYPE_TIMER, &op);
}
}
+
+void util_launch_home(void)
+{
+ app_control_h app_ctrl;
+ int r;
+
+ r = app_control_create(&app_ctrl);
+ if (r != APP_CONTROL_ERROR_NONE) {
+ _ERR("failed to create app control handle");
+ return;
+ }
+
+ r = app_control_set_operation(app_ctrl, APP_CONTROL_OPERATION_DEFAULT);
+ if (r != APP_CONTROL_ERROR_NONE) {
+ _ERR("failed to set app control operation");
+ app_control_destroy(app_ctrl);
+ return;
+ }
+
+ r = app_control_set_app_id(app_ctrl, APP_ID_HOME);
+ if (r != APP_CONTROL_ERROR_NONE) {
+ _ERR("failed to set app control app id");
+ app_control_destroy(app_ctrl);
+ return;
+ }
+
+ r = app_control_send_launch_request(app_ctrl, NULL, NULL);
+ if (r != APP_CONTROL_ERROR_NONE) {
+ _ERR("failed to send app control launch request");
+ app_control_destroy(app_ctrl);
+ return;
+ }
+
+ app_control_destroy(app_ctrl);
+}
+