[sr-dev] git:master:8b5531ad: core: kemi - added long type and field to xval union

Daniel-Constantin Mierla miconda at gmail.com
Thu Nov 24 10:35:54 CET 2022


Module: kamailio
Branch: master
Commit: 8b5531ad22fb324551ed27aa0beac2033df1afd8
URL: https://github.com/kamailio/kamailio/commit/8b5531ad22fb324551ed27aa0beac2033df1afd8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-11-24T09:56:15+01:00

core: kemi - added long type and field to xval union

---

Modified: src/core/kemi.h

---

Diff:  https://github.com/kamailio/kamailio/commit/8b5531ad22fb324551ed27aa0beac2033df1afd8.diff
Patch: https://github.com/kamailio/kamailio/commit/8b5531ad22fb324551ed27aa0beac2033df1afd8.patch

---

diff --git a/src/core/kemi.h b/src/core/kemi.h
index 26e9bd4860..2a8ce7105f 100644
--- a/src/core/kemi.h
+++ b/src/core/kemi.h
@@ -30,10 +30,11 @@
 #define SR_KEMIP_INT	(1<<0)	/* type integer */
 #define SR_KEMIP_STR	(1<<1)	/* type str* */
 #define SR_KEMIP_BOOL	(1<<2)	/* type boolean (0/1) */
-#define SR_KEMIP_XVAL	(1<<3)	/* type extended value (integer, str*, ...) */
-#define SR_KEMIP_NULL	(1<<4)	/* type NULL */
-#define SR_KEMIP_DICT	(1<<5)	/* type dictionary */
-#define SR_KEMIP_ARRAY	(1<<6)	/* type array */
+#define SR_KEMIP_LONG	(1<<3)	/* type long integer */
+#define SR_KEMIP_XVAL	(1<<4)	/* type extended value (integer, str*, ...) */
+#define SR_KEMIP_NULL	(1<<5)	/* type NULL */
+#define SR_KEMIP_DICT	(1<<6)	/* type dictionary */
+#define SR_KEMIP_ARRAY	(1<<7)	/* type array */
 
 #define SR_KEMI_FALSE	0
 #define SR_KEMI_TRUE	1
@@ -65,6 +66,7 @@ typedef struct sr_kemi_module {
 
 typedef union {
 	int n;
+	long l;
 	str s;
 } sr_kemi_val_t;
 
@@ -75,6 +77,7 @@ typedef struct sr_kemi_dict_item
 	int vtype;
 	union {
 		int n;
+		long l;
 		str s;
 		struct sr_kemi_dict_item *dict;
 	} v;
@@ -84,6 +87,7 @@ typedef struct sr_kemi_xval {
 	int vtype;
 	union {
 		int n;
+		long l;
 		str s;
 		sr_kemi_dict_item_t *dict;
 	} v;




More information about the sr-dev mailing list