Przeglądaj źródła

core: exposed kemi function to remove a header by name

Daniel-Constantin Mierla 5 lat temu
rodzic
commit
9d6c274b04
2 zmienionych plików z 5 dodań i 1 usunięć
  1. 1 1
      src/core/kemi.c
  2. 4 0
      src/core/kemi.h

+ 1 - 1
src/core/kemi.c

@@ -1991,7 +1991,7 @@ static int sr_kemi_hdr_append_after(sip_msg_t *msg, str *txt, str *hname)
 /**
  *
  */
-static int sr_kemi_hdr_remove(sip_msg_t *msg, str *hname)
+int sr_kemi_hdr_remove(sip_msg_t *msg, str *hname)
 {
 	struct lump* anchor;
 	hdr_field_t *hf;

+ 4 - 0
src/core/kemi.h

@@ -225,4 +225,8 @@ sr_kemi_t* sr_kemi_exports_get_pv(void);
 #define SR_KEMI_XVAL_NULL_ZERO 3
 void sr_kemi_xval_null(sr_kemi_xval_t *xval, int rmode);
 void sr_kemi_xval_free(sr_kemi_xval_t *xval);
+
+/* functions exported to kemi that are used in other places */
+int sr_kemi_hdr_remove(sip_msg_t *msg, str *hname);
+
 #endif