Module: kamailio
Branch: master
Commit: 72cc434ef75a0667c843206cf84fe080bb912dd3
URL:
https://github.com/kamailio/kamailio/commit/72cc434ef75a0667c843206cf84fe08…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-09T20:12:22+01:00
core: kemi - added typedefs for functions with three params and xval return
---
Modified: src/core/kemi.h
---
Diff:
https://github.com/kamailio/kamailio/commit/72cc434ef75a0667c843206cf84fe08…
Patch:
https://github.com/kamailio/kamailio/commit/72cc434ef75a0667c843206cf84fe08…
---
diff --git a/src/core/kemi.h b/src/core/kemi.h
index 6493ab5009..26e9bd4860 100644
--- a/src/core/kemi.h
+++ b/src/core/kemi.h
@@ -180,6 +180,16 @@ typedef sr_kemi_xval_t* (*sr_kemi_xfmns_f)(sip_msg_t*, int, str*);
typedef sr_kemi_xval_t* (*sr_kemi_xfmsn_f)(sip_msg_t*, str*, int);
typedef sr_kemi_xval_t* (*sr_kemi_xfmss_f)(sip_msg_t*, str*, str*);
+/* return xval, params sip_msg_t and three int|str params */
+typedef sr_kemi_xval_t* (*sr_kemi_xfmnnn_f)(sip_msg_t*, int, int, int);
+typedef sr_kemi_xval_t* (*sr_kemi_xfmnns_f)(sip_msg_t*, int, int, str*);
+typedef sr_kemi_xval_t* (*sr_kemi_xfmnsn_f)(sip_msg_t*, int, str*, int);
+typedef sr_kemi_xval_t* (*sr_kemi_xfmnss_f)(sip_msg_t*, int, str*, str*);
+typedef sr_kemi_xval_t* (*sr_kemi_xfmsnn_f)(sip_msg_t*, str*, int, int);
+typedef sr_kemi_xval_t* (*sr_kemi_xfmsns_f)(sip_msg_t*, str*, int, str*);
+typedef sr_kemi_xval_t* (*sr_kemi_xfmssn_f)(sip_msg_t*, str*, str*, int);
+typedef sr_kemi_xval_t* (*sr_kemi_xfmsss_f)(sip_msg_t*, str*, str*, str*);
+
sr_kemi_t* sr_kemi_lookup(str *mname, int midx, str *fname);
int sr_kemi_modules_add(sr_kemi_t *klist);