Browse code

core: exposed kemi function to remove a header by name

Daniel-Constantin Mierla authored on 28/05/2020 07:26:43
Showing 2 changed files
... ...
@@ -1991,7 +1991,7 @@ static int sr_kemi_hdr_append_after(sip_msg_t *msg, str *txt, str *hname)
1991 1991
 /**
1992 1992
  *
1993 1993
  */
1994
-static int sr_kemi_hdr_remove(sip_msg_t *msg, str *hname)
1994
+int sr_kemi_hdr_remove(sip_msg_t *msg, str *hname)
1995 1995
 {
1996 1996
 	struct lump* anchor;
1997 1997
 	hdr_field_t *hf;
... ...
@@ -225,4 +225,8 @@ sr_kemi_t* sr_kemi_exports_get_pv(void);
225 225
 #define SR_KEMI_XVAL_NULL_ZERO 3
226 226
 void sr_kemi_xval_null(sr_kemi_xval_t *xval, int rmode);
227 227
 void sr_kemi_xval_free(sr_kemi_xval_t *xval);
228
+
229
+/* functions exported to kemi that are used in other places */
230
+int sr_kemi_hdr_remove(sip_msg_t *msg, str *hname);
231
+
228 232
 #endif