[sr-dev] git:master:0c589b59: core: kemi - commented relevant defines and structure members

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 13 12:35:10 CEST 2016


Module: kamailio
Branch: master
Commit: 0c589b5924587392ac5343d36a081a3a733bd74d
URL: https://github.com/kamailio/kamailio/commit/0c589b5924587392ac5343d36a081a3a733bd74d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-04-13T12:34:37+02:00

core: kemi - commented relevant defines and structure members

---

Modified: kemi.h

---

Diff:  https://github.com/kamailio/kamailio/commit/0c589b5924587392ac5343d36a081a3a733bd74d.diff
Patch: https://github.com/kamailio/kamailio/commit/0c589b5924587392ac5343d36a081a3a733bd74d.patch

---

diff --git a/kemi.h b/kemi.h
index 19e328b..ea33399 100644
--- a/kemi.h
+++ b/kemi.h
@@ -25,19 +25,19 @@
 #include "str.h"
 #include "parser/msg_parser.h"
 
-#define SR_KEMIP_NONE	(0)
-#define SR_KEMIP_INT	(1<<0)
-#define SR_KEMIP_STR	(1<<1)
-#define SR_KEMIP_BOOL	(1<<2)
+#define SR_KEMIP_NONE	(0)		/* no type */
+#define SR_KEMIP_INT	(1<<0)	/* type integer */
+#define SR_KEMIP_STR	(1<<1)	/* type str* */
+#define SR_KEMIP_BOOL	(1<<2)	/* type boolean (0/1) */
 
 #define SR_KEMI_PARAMS_MAX	6
 
 typedef struct sr_kemi {
-	str mname;
-	str fname;
-	int rtype;
-	void *func;
-	int ptypes[SR_KEMI_PARAMS_MAX];
+	str mname; /* sub-module name */
+	str fname; /* function name */
+	int rtype; /* return type (supported SR_KEMIP_INT/BOOL) */
+	void *func; /* pointer to the C function to be executed */
+	int ptypes[SR_KEMI_PARAMS_MAX]; /* array with the type of parameters */
 } sr_kemi_t;
 
 typedef struct sr_kemi_item {




More information about the sr-dev mailing list