Module: kamailio
Branch: master
Commit: beb80c948d0a5afc097bd4a5d9701907d553407f
URL:
https://github.com/kamailio/kamailio/commit/beb80c948d0a5afc097bd4a5d970190…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-23T10:49:50+02:00
core: kemi - prototypes for functions returning xval with up to two params
---
Modified: src/core/kemi.h
---
Diff:
https://github.com/kamailio/kamailio/commit/beb80c948d0a5afc097bd4a5d970190…
Patch:
https://github.com/kamailio/kamailio/commit/beb80c948d0a5afc097bd4a5d970190…
---
diff --git a/src/core/kemi.h b/src/core/kemi.h
index 834d393ac8..5abba44b1e 100644
--- a/src/core/kemi.h
+++ b/src/core/kemi.h
@@ -152,6 +152,19 @@ typedef int (*sr_kemi_fmnnnnn_f)(sip_msg_t*, int, int, int, int,
int);
/* sip_msg_t and six int|str params */
typedef int (*sr_kemi_fmssssss_f)(sip_msg_t*, str*, str*, str*, str*, str*, str*);
+/* return xval, params only sip_msg_t */
+typedef sr_kemi_xval_t* (*sr_kemi_xfm_f)(sip_msg_t*);
+
+/* return xval, params sip_msg_t and one int|str param */
+typedef sr_kemi_xval_t* (*sr_kemi_xfmn_f)(sip_msg_t*, int);
+typedef sr_kemi_xval_t* (*sr_kemi_xfms_f)(sip_msg_t*, str*);
+
+/* return xval, params sip_msg_t and two int|str params */
+typedef sr_kemi_xval_t* (*sr_kemi_xfmnn_f)(sip_msg_t*, int, int);
+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*);
+
sr_kemi_t* sr_kemi_lookup(str *mname, int midx, str *fname);
int sr_kemi_modules_add(sr_kemi_t *klist);