Browse code

core: kemi - added identifier for int-str type

- useful for dumping attributes for special kemi functions

Daniel-Constantin Mierla authored on 01/05/2016 08:09:28
Showing 2 changed files
... ...
@@ -1027,10 +1027,11 @@ typedef struct sr_kemi_param_map {
1027 1027
  *
1028 1028
  */
1029 1029
 static sr_kemi_param_map_t _sr_kemi_param_map[] = {
1030
-	{ SR_KEMIP_NONE, str_init("none") },
1031
-	{ SR_KEMIP_INT,  str_init("int") },
1032
-	{ SR_KEMIP_STR,  str_init("str") },
1033
-	{ SR_KEMIP_BOOL, str_init("bool") },
1030
+	{ SR_KEMIP_NONE,   str_init("none") },
1031
+	{ SR_KEMIP_INT,    str_init("int") },
1032
+	{ SR_KEMIP_STR,    str_init("str") },
1033
+	{ SR_KEMIP_BOOL,   str_init("bool") },
1034
+	{ SR_KEMIP_INTSTR, str_init("int-str") },
1034 1035
 	{ 0, STR_NULL }
1035 1036
 };
1036 1037
 
... ...
@@ -30,6 +30,7 @@
30 30
 #define SR_KEMIP_INT	(1<<0)	/* type integer */
31 31
 #define SR_KEMIP_STR	(1<<1)	/* type str* */
32 32
 #define SR_KEMIP_BOOL	(1<<2)	/* type boolean (0/1) */
33
+#define SR_KEMIP_INTSTR	(1<<3)	/* type integer or str* */
33 34
 
34 35
 #define SR_KEMI_FALSE	0
35 36
 #define SR_KEMI_TRUE	1