diff options
Diffstat (limited to 'libedge-orchestration/src/orchestration_client.c')
-rwxr-xr-x | libedge-orchestration/src/orchestration_client.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/libedge-orchestration/src/orchestration_client.c b/libedge-orchestration/src/orchestration_client.c index 6a96d95..e2a9305 100755 --- a/libedge-orchestration/src/orchestration_client.c +++ b/libedge-orchestration/src/orchestration_client.c @@ -29,9 +29,10 @@ orchestration_changed_service_status_cb _changed_service_status_cb; #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) + bool self_select, + orchestration_service_info_s service_info, + orchestration_changed_service_status_cb cb, + void *user_data) { int result = 0; @@ -55,14 +56,15 @@ orchestration_client_state_e orchestration_request_service(char *app_name, } printf("[orchestration_client]\n"); - printf("\t app_name : %s\n", app_name); - printf("\t count : %d\n", service_info.count); - for (int i = 0; i < service_info.count; i++) { - printf("\t service_info[%d]->exec_type : %s\n", i, service_info.services[i].exec_type); - printf("\t service_info[%d]->exec_parameter : %s\n", i, service_info.services[i].exec_parameter); - } + printf("\t app_name : %s\n", app_name); + printf("\t self_select : %s\n", self_select ? "true" : "false"); + printf("\t count : %d\n", service_info.count); + for (int i = 0; i < service_info.count; i++) { + printf("\t service_info[%d]->exec_type : %s\n", i, service_info.services[i].exec_type); + printf("\t service_info[%d]->exec_parameter : %s\n", i, service_info.services[i].exec_parameter); + } - result = request_service_execute(app_name, service_info.services, service_info.count); + result = request_service_execute(app_name, self_select, service_info.services, service_info.count); if (result != ORCH_DBUS_ERROR_NONE) { printf("request_service_execute failed\n"); |