From adda541517469b1ca25a1cfbd477d6a80bcaac16 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Thu, 17 Jul 2014 16:33:42 +0900 Subject: [PATCH] replace service_ with app_control_ Change-Id: I2fe52b41c1d16d8a5479d64f55182dcfa13c2400 --- live.viewer/src/main.c | 4 ++-- src/livebox.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/live.viewer/src/main.c b/live.viewer/src/main.c index 9f84418..1f57b90 100644 --- a/live.viewer/src/main.c +++ b/live.viewer/src/main.c @@ -163,7 +163,7 @@ static void app_resume(void *data) DbgPrint("resume"); } -static void app_reset(service_h service, void *data) +static void app_control(app_control_h service, void *data) { DbgPrint("reset"); } @@ -177,7 +177,7 @@ int main(int argc, char *argv[]) event_callback.terminate = app_terminate; event_callback.pause = app_pause; event_callback.resume = app_resume; - event_callback.service = app_reset; + event_callback.app_control = app_control; event_callback.low_memory = NULL; event_callback.low_battery = NULL; event_callback.device_orientation = NULL; diff --git a/src/livebox.c b/src/livebox.c index 4567c02..50bfbdd 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -120,15 +120,15 @@ static int default_launch_handler(struct livebox *handler, const char *appid, vo } /* - service_h service; + app_control_h service; DbgPrint("AUTO_LAUNCH [%s]\n", handler->common->lb.auto_launch); - ret = service_create(&service); - if (ret == SERVICE_ERROR_NONE) { - service_set_package(service, handler->common->lb.auto_launch); - service_send_launch_request(service, NULL, NULL); - service_destroy(service); + ret = app_control_create(&service); + if (ret == APP_CONTROL_ERROR_NONE) { + app_control_set_package(service, handler->common->lb.auto_launch); + app_control_send_launch_request(service, NULL, NULL); + app_control_destroy(service); } else { ErrPrint("Failed to launch an app %s (%d)\n", handler->common->lb.auto_launch, ret); } -- 2.7.4