[sr-dev] git:master:04763fe7: core: utils/srjon - macros to get long long values

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 20 10:17:05 CET 2021


Module: kamailio
Branch: master
Commit: 04763fe7de760005535e145f7fd783bbb60b2586
URL: https://github.com/kamailio/kamailio/commit/04763fe7de760005535e145f7fd783bbb60b2586

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-12-20T10:14:27+01:00

core: utils/srjon - macros to get long long values

---

Modified: src/core/utils/srjson.h

---

Diff:  https://github.com/kamailio/kamailio/commit/04763fe7de760005535e145f7fd783bbb60b2586.diff
Patch: https://github.com/kamailio/kamailio/commit/04763fe7de760005535e145f7fd783bbb60b2586.patch

---

diff --git a/src/core/utils/srjson.h b/src/core/utils/srjson.h
index dd56449340..dce2ae9252 100644
--- a/src/core/utils/srjson.h
+++ b/src/core/utils/srjson.h
@@ -53,6 +53,8 @@ extern          "C"
 #define SRJSON_GET_UINT(sj)	((unsigned int)((sj)->valuedouble))
 #define SRJSON_GET_LONG(sj)	((long)((sj)->valuedouble))
 #define SRJSON_GET_ULONG(sj)	((unsigned long)((sj)->valuedouble))
+#define SRJSON_GET_LLONG(sj)	((long long)((sj)->valuedouble))
+#define SRJSON_GET_ULLONG(sj)	((unsigned long long)((sj)->valuedouble))
 
 /* The srjson node structure: */
 typedef struct srjson {




More information about the sr-dev mailing list