[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 a2b828fb4b8c5e138cdcb74b984ae413b1b1a9d9..e1f73ac1e4989a4d23dcf781aeac13dfebe2d51a 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 df8c3e757bbbf6e908e95dd7373a399e62081bc8..5e2dc3072f7c3e034cfb5c6ea1d398cdc1915d9d 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