[PROTO] add 'v','n' probe ret type support
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Thu, 14 Nov 2013 09:13:02 +0000 (13:13 +0400)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Thu, 14 Nov 2013 09:16:04 +0000 (13:16 +0400)
Change-Id: I38d295583020a1112caef2d04ef82a2513c3c592
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/da_protocol_check.c
daemon/da_protocol_check.h

index a2b828f..e1f73ac 100644 (file)
@@ -172,9 +172,10 @@ int check_us_inst_func_args(char *args)
        return 1;
 }
 
+static char *rets_avail = US_FUNC_RETURN;
 int check_us_inst_func_ret_type(char ret_type)
 {
-       if (strchr(args_avail, (int)ret_type) == NULL){
+       if (strchr(rets_avail, (int)ret_type) == NULL){
                LOGE("wrong ret type <%c> <0x%02X>\n", (int)ret_type, (char)ret_type);
                return 0;
        }
index df8c3e7..5e2dc30 100644 (file)
@@ -45,6 +45,7 @@
 #define US_APP_INST_FUNC_MAX 50000
 
 #define US_FUNC_ARGS "bcdxpfw"
+#define US_FUNC_RETURN "vnbcdxpfw"
 
 #define US_APP_INST_LIB_MIN 0
 #define US_APP_INST_LIB_MAX 100