From: Sung-jae Park Date: Thu, 17 Jul 2014 04:18:31 +0000 (+0900) Subject: Replace app-service callback with new one X-Git-Tag: submit/tizen_mobile/20150512.125148^2~1^2~15^2~9^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8539e470d7aee9d4283070c8a9e368ff63eb5cb9;p=platform%2Fcore%2Fappfw%2Fdata-provider-slave.git Replace app-service callback with new one Change-Id: I3c4760278e9409af641d3f6c268f1029ff68de67 --- diff --git a/src/main.c b/src/main.c index f897826..c4d8b5e 100644 --- a/src/main.c +++ b/src/main.c @@ -549,7 +549,7 @@ static void app_language_changed(void *data) lb_system_event_all(LB_SYS_EVENT_LANG_CHANGED); } -static void app_service(service_h service, void *data) +static void app_control(app_control_h service, void *data) { int ret; char *name; @@ -561,13 +561,13 @@ static void app_service(service_h service, void *data) return; } - ret = service_get_extra_data(service, "name", &name); + ret = app_control_get_extra_data(service, "name", &name); if (ret != SERVICE_ERROR_NONE) { ErrPrint("Name is not valid\n"); return; } - ret = service_get_extra_data(service, "secured", &secured); + ret = app_control_get_extra_data(service, "secured", &secured); if (ret != SERVICE_ERROR_NONE) { free(name); ErrPrint("Secured is not valid\n"); @@ -662,7 +662,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_service; + event_callback.app_control = app_control; event_callback.low_memory = NULL; event_callback.low_battery = NULL; event_callback.device_orientation = NULL;