From 176ee187d6b6116860d2d021684ed304bfc57fff Mon Sep 17 00:00:00 2001 From: sooyeon Date: Thu, 4 Aug 2022 16:28:51 +0900 Subject: [PATCH] Replace the name METHOD_ERROR_TO_APP with METHOD_ERROR Change-Id: I6ca381930becc1a6a01be55aa45b0dcac173637d Signed-off-by: sooyeon --- client/vc_tidl.c | 4 ++-- common/vc_defs.h | 2 +- server/vcd_tidl.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/vc_tidl.c b/client/vc_tidl.c index ed216ea..7753589 100644 --- a/client/vc_tidl.c +++ b/client/vc_tidl.c @@ -199,7 +199,7 @@ static void __notify_cb(void* user_data, int pid, bundle* msg) __vc_cb_manager_pid(atoi(manager_pid)); } } /* VCD_METHOD_SEND_MANAGER_PID */ - else if (0 == strncmp(VCD_METHOD_ERROR_TO_APP, method, strlen(VCD_METHOD_ERROR_TO_APP))) { + else if (0 == strncmp(VCD_METHOD_ERROR, method, strlen(VCD_METHOD_ERROR))) { /* signal!!! */ char* pid; char* reason; @@ -211,7 +211,7 @@ static void __notify_cb(void* user_data, int pid, bundle* msg) SLOG(LOG_DEBUG, TAG_VCC, "@@ vc Get Error message : reason(%d), pid(%d), msg(%s)", atoi(reason), atoi(pid), err_msg); __vc_cb_error(atoi(reason), err_msg); - } /* VCD_METHOD_ERROR_TO_APP */ + } /* VCD_METHOD_ERROR */ else if (0 == strncmp(VC_MANAGER_METHOD_UTTERANCE_STATUS, method, strlen(VC_MANAGER_METHOD_UTTERANCE_STATUS))) { /* signal!!! */ char* pid = NULL; diff --git a/common/vc_defs.h b/common/vc_defs.h index 0f09459..6cc4728 100644 --- a/common/vc_defs.h +++ b/common/vc_defs.h @@ -115,7 +115,7 @@ extern "C" { #define VCD_METHOD_RESULT "vcd_method_result" -#define VCD_METHOD_ERROR_TO_APP "vcd_method_error_to_app" +#define VCD_METHOD_ERROR "vcd_method_error" #define VCD_METHOD_HELLO "vcd_method_hello" #define VCD_METHOD_SET_SERVICE_STATE "vcd_method_set_service_state" #define VCD_METHOD_SEND_MANAGER_PID "vcd_method_send_manager_pid" diff --git a/server/vcd_tidl.c b/server/vcd_tidl.c index e4a7426..a881cd7 100644 --- a/server/vcd_tidl.c +++ b/server/vcd_tidl.c @@ -1906,7 +1906,7 @@ int vcdc_send_error_signal_to_app(int pid, int reason, char *err_msg) snprintf(pid_char, 10, "%d", pid); snprintf(reason_char, 10, "%d", reason); - bundle_add_str(msg, VC_BUNDLE_METHOD, VCD_METHOD_ERROR_TO_APP); + bundle_add_str(msg, VC_BUNDLE_METHOD, VCD_METHOD_ERROR); bundle_add_str(msg, VC_BUNDLE_PID, pid_char); bundle_add_str(msg, VC_BUNDLE_REASON, reason_char); bundle_add_str(msg, VC_BUNDLE_ERR_MSG, err_msg); -- 2.7.4