From c9501d0281809e47c46e473e1ebfce3bdacf252f Mon Sep 17 00:00:00 2001 From: heewon Park Date: Wed, 24 Apr 2019 15:34:36 +0900 Subject: [PATCH] Fixed error logic & remove check logic Change-Id: If9ef3f87f3470e8efad6e0fdf9359338db95974f Signed-off-by: heewon Park --- src/libedge-orchestration/src/orchestration_client.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/libedge-orchestration/src/orchestration_client.c b/src/libedge-orchestration/src/orchestration_client.c index 3aa49a2..a56c119 100755 --- a/src/libedge-orchestration/src/orchestration_client.c +++ b/src/libedge-orchestration/src/orchestration_client.c @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -11,23 +12,19 @@ orchestration_changed_service_status_cb _changed_service_status_cb; #define _ORCHESTRATION_INTERFACE "org.tizen.orchestration.agent" #define _ORCHESTRATION_REQUEST_SERVICE_METHOD "request_service" -orchestration_client_state_e orchestration_request_service(char* app_name, - orchestration_service_info_s service_info, - orchestration_changed_service_status_cb cb, - void* user_data) +orchestration_client_state_e orchestration_request_service(char *app_name, + orchestration_service_info_s service_info, + orchestration_changed_service_status_cb cb, + void *user_data) { int result = 0; - if (app_name == NULL) + if (strcmp(app_name, "") == 0) { printf("app_name is null\n"); return ORCH_CLIENT_ERROR_INVALID_PARAMETER; } - if (service_info.exec_parameter == NULL) - { - printf("service_info is null\n"); - return ORCH_CLIENT_ERROR_INVALID_PARAMETER; - } + if (cb == NULL) { printf("orchestration_changed_service_status_cb is null\n"); @@ -51,4 +48,3 @@ orchestration_client_state_e orchestration_request_service(char* app_name, return ORCH_CLIENT_ERROR_NONE; } - -- 2.7.4