Module: kamailio
Branch: master
Commit: 0c29f0e36b5b287266b5180efac14d4366fbe272
URL:
https://github.com/kamailio/kamailio/commit/0c29f0e36b5b287266b5180efac14d4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-12-09T07:00:51+01:00
pv_headers: fixed kemi export for pvh_append_header()
- reformat kemi exports structure to be able to parse with python tool
for generating docs
---
Modified: src/modules/pv_headers/pv_headers.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0c29f0e36b5b287266b5180efac14d4…
Patch:
https://github.com/kamailio/kamailio/commit/0c29f0e36b5b287266b5180efac14d4…
---
diff --git a/src/modules/pv_headers/pv_headers.c b/src/modules/pv_headers/pv_headers.c
index 97308479ce..999802c127 100644
--- a/src/modules/pv_headers/pv_headers.c
+++ b/src/modules/pv_headers/pv_headers.c
@@ -314,35 +314,43 @@ int handle_msg_cb(struct sip_msg *msg, unsigned int flags, void
*cb)
}
static sr_kemi_t pvh_kemi_exports[] = {
- {str_init("pv_headers"), str_init("pvh_collect_headers"),
SR_KEMIP_INT,
- ki_pvh_collect_headers,
- {SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
- SR_KEMIP_NONE, SR_KEMIP_NONE}},
- {str_init("pv_headers"), str_init("pvh_apply_headers"),
SR_KEMIP_INT,
- ki_pvh_apply_headers,
- {SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
- SR_KEMIP_NONE, SR_KEMIP_NONE}},
- {str_init("pv_headers"), str_init("pvh_reset_headers"),
SR_KEMIP_INT,
- pvh_reset_headers,
- {SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
- SR_KEMIP_NONE, SR_KEMIP_NONE}},
- {str_init("pv_headers"), str_init("pvh_check_header"),
SR_KEMIP_INT,
- pvh_check_header,
- {SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
- SR_KEMIP_NONE, SR_KEMIP_NONE}},
- {str_init("pv_headers"), str_init("pvh_append_header"),
SR_KEMIP_INT,
- pvh_check_header,
- {SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
- SR_KEMIP_NONE, SR_KEMIP_NONE}},
- {str_init("pv_headers"), str_init("pvh_modify_header"),
SR_KEMIP_INT,
- pvh_modify_header,
- {SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_INT, SR_KEMIP_NONE,
- SR_KEMIP_NONE, SR_KEMIP_NONE}},
- {str_init("pv_headers"), str_init("pvh_remove_header"),
SR_KEMIP_INT,
- pvh_remove_header,
- {SR_KEMIP_STR, SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE,
- SR_KEMIP_NONE, SR_KEMIP_NONE}},
- {{0, 0}, {0, 0}, 0, NULL, {0, 0, 0, 0, 0, 0}}};
+ { str_init("pv_headers"), str_init("pvh_collect_headers"),
+ SR_KEMIP_INT, ki_pvh_collect_headers,
+ { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE}
+ },
+ { str_init("pv_headers"), str_init("pvh_apply_headers"),
+ SR_KEMIP_INT, ki_pvh_apply_headers,
+ { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE}
+ },
+ { str_init("pv_headers"), str_init("pvh_reset_headers"),
+ SR_KEMIP_INT, pvh_reset_headers,
+ { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE}
+ },
+ { str_init("pv_headers"), str_init("pvh_check_header"),
+ SR_KEMIP_INT, pvh_check_header,
+ { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE}
+ },
+ { str_init("pv_headers"), str_init("pvh_append_header"),
+ SR_KEMIP_INT, pvh_append_header,
+ { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE}
+ },
+ { str_init("pv_headers"), str_init("pvh_modify_header"),
+ SR_KEMIP_INT, pvh_modify_header,
+ { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_INT,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE}
+ },
+ { str_init("pv_headers"), str_init("pvh_remove_header"),
+ SR_KEMIP_INT, pvh_remove_header,
+ { SR_KEMIP_STR, SR_KEMIP_INT, SR_KEMIP_NONE,
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE}
+ },
+ {{0, 0}, {0, 0}, 0, NULL, {0, 0, 0, 0, 0, 0}}
+};
int mod_register(char *path, int *dlflags, void *p1, void *p2)
{