From 5aadec1cfef431322a9dd8835a7ed119a76836de Mon Sep 17 00:00:00 2001 From: wansuyoo Date: Tue, 14 May 2019 17:08:04 +0900 Subject: [PATCH] modify service_info_s member name of external api Change-Id: I0334ed4adf5b7e8eee63a694ec56ea0561c777da Signed-off-by: wansuyoo --- src/libedge-orchestration/inc/orchestration_client.h | 2 +- src/libedge-orchestration/sample/main.c | 2 +- src/libedge-orchestration/sample/main_chrome.c | 4 ++-- src/libedge-orchestration/src/orchestration_client.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libedge-orchestration/inc/orchestration_client.h b/src/libedge-orchestration/inc/orchestration_client.h index a150880..a14a9e7 100755 --- a/src/libedge-orchestration/inc/orchestration_client.h +++ b/src/libedge-orchestration/inc/orchestration_client.h @@ -40,7 +40,7 @@ typedef enum typedef struct { - char *exec_parameter; + char *exec_command; } orchestration_service_info_s; typedef void (*orchestration_changed_service_status_cb)(orchestration_service_status_e staus, void *user_data); diff --git a/src/libedge-orchestration/sample/main.c b/src/libedge-orchestration/sample/main.c index 489bccf..c26726d 100755 --- a/src/libedge-orchestration/sample/main.c +++ b/src/libedge-orchestration/sample/main.c @@ -25,7 +25,7 @@ void status_cb(orchestration_service_status_e staus, void* user_data) int main() { orchestration_service_info_s service_info; - service_info.exec_parameter = "ls -al"; + service_info.exec_command = "ls -al"; orchestration_request_service("list_segments", service_info, status_cb, NULL); return 0; } \ No newline at end of file diff --git a/src/libedge-orchestration/sample/main_chrome.c b/src/libedge-orchestration/sample/main_chrome.c index a43ce3c..e55d00f 100755 --- a/src/libedge-orchestration/sample/main_chrome.c +++ b/src/libedge-orchestration/sample/main_chrome.c @@ -56,8 +56,8 @@ int main() { return 0; } orchestration_service_info_s service_info; - service_info.exec_parameter = strcat(command, ipstr); - printf("service_info.exec_parameter: %s\n", service_info.exec_parameter); + service_info.exec_command = strcat(command, ipstr); + printf("service_info.exec_command: %s\n", service_info.exec_command); orchestration_request_service("org.tizen.chromium-efl", service_info, status_cb, NULL); return 0; } \ No newline at end of file diff --git a/src/libedge-orchestration/src/orchestration_client.c b/src/libedge-orchestration/src/orchestration_client.c index 024f256..03457d7 100755 --- a/src/libedge-orchestration/src/orchestration_client.c +++ b/src/libedge-orchestration/src/orchestration_client.c @@ -55,7 +55,7 @@ orchestration_client_state_e orchestration_request_service(char *app_name, return ORCH_CLIENT_ERROR_FAULT; } - result = request_service_execute(app_name, service_info.exec_parameter); + result = request_service_execute(app_name, service_info.exec_command); if (result != ORCH_DBUS_ERROR_NONE) { printf("request_service_execute failed\n"); -- 2.7.4