[sr-dev] git:master:a97f2f7b: core: pv - exposed the function to return the str empty static variable

Daniel-Constantin Mierla miconda at gmail.com
Tue May 21 15:57:50 CEST 2019


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-05-21T14:55:53+02:00

core: pv - exposed the function to return the str empty static variable

---

Modified: src/core/pvapi.c
Modified: src/core/pvar.h

---

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

---

diff --git a/src/core/pvapi.c b/src/core/pvapi.c
index bd0d3c2e98..28429406c6 100644
--- a/src/core/pvapi.c
+++ b/src/core/pvapi.c
@@ -695,6 +695,14 @@ str *pv_get_null_str(void)
 	return &pv_str_null;
 }
 
+/**
+ *
+ */
+str *pv_get_empty_str(void)
+{
+	return &pv_str_empty;
+}
+
 /**
  *
  */
diff --git a/src/core/pvar.h b/src/core/pvar.h
index 564bc03d90..a61072ff6b 100644
--- a/src/core/pvar.h
+++ b/src/core/pvar.h
@@ -210,6 +210,7 @@ int pv_locate_name(str *in);
 pv_spec_t* pv_cache_get(str *name);
 str* pv_cache_get_name(pv_spec_t *spec);
 str *pv_get_null_str(void);
+str *pv_get_empty_str(void);
 
 /*! \brief PV helper functions */
 int pv_get_null(struct sip_msg *msg, pv_param_t *param, pv_value_t *res);




More information about the sr-dev mailing list