Преглед на файлове

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

Daniel-Constantin Mierla преди 6 години
родител
ревизия
a97f2f7b25
променени са 2 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. 8 0
      src/core/pvapi.c
  2. 1 0
      src/core/pvar.h

+ 8 - 0
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;
+}
+
 /**
  *
  */

+ 1 - 0
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);