Module: kamailio
Branch: master
Commit: a92de0dfc809f9257eb230093c93081606ee107e
URL:
https://github.com/kamailio/kamailio/commit/a92de0dfc809f9257eb230093c93081…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-08-22T11:10:36+02:00
core: mem - wrapper macros to specify position params for shm allocation
---
Modified: src/core/mem/shm.h
---
Diff:
https://github.com/kamailio/kamailio/commit/a92de0dfc809f9257eb230093c93081…
Patch:
https://github.com/kamailio/kamailio/commit/a92de0dfc809f9257eb230093c93081…
---
diff --git a/src/core/mem/shm.h b/src/core/mem/shm.h
index 3813d984012..4db3a0e0101 100644
--- a/src/core/mem/shm.h
+++ b/src/core/mem/shm.h
@@ -53,6 +53,9 @@ extern sr_shm_api_t _shm_root;
#define shm_mallocxz(s) \
_shm_root.xmallocxz(_shm_root.mem_block, (s), _SRC_LOC_, _SRC_FUNCTION_, \
_SRC_LINE_, _SRC_MODULE_)
+#define shm_mallocxp(s, loc, fname, nline, mname)
\
+ _shm_root.xmalloc(_shm_root.mem_block, (s), loc, fname, \
+ nline, mname)
#define shm_malloc_unsafe(s) \
_shm_root.xmalloc_unsafe(_shm_root.mem_block, (s), _SRC_LOC_, \
_SRC_FUNCTION_, _SRC_LINE_, _SRC_MODULE_)
@@ -62,6 +65,9 @@ extern sr_shm_api_t _shm_root;
#define shm_reallocxf(p, s) \
_shm_root.xreallocxf(_shm_root.mem_block, (p), (s), _SRC_LOC_, \
_SRC_FUNCTION_, _SRC_LINE_, _SRC_MODULE_)
+#define shm_reallocxp(p, s, loc, fname, nline, mname)
\
+ _shm_root.xrealloc(_shm_root.mem_block, (p), (s), loc, \
+ fname, nline, mname)
#define shm_resize(p, s) \
_shm_root.xresize(_shm_root.mem_block, (p), (s), _SRC_LOC_, \
_SRC_FUNCTION_, _SRC_LINE_, _SRC_MODULE_)