[sr-dev] git:master:17c8fad3: cfgutils Export trylock function to kemi

Olle E. Johansson oej at edvina.net
Fri Jun 10 14:21:15 CEST 2016


Module: kamailio
Branch: master
Commit: 17c8fad3fa5ea5c2dd1b6285508aa6156d9b4c3f
URL: https://github.com/kamailio/kamailio/commit/17c8fad3fa5ea5c2dd1b6285508aa6156d9b4c3f

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date: 2016-06-10T14:21:07+02:00

cfgutils Export trylock function to kemi

---

Modified: modules/cfgutils/cfgutils.c

---

Diff:  https://github.com/kamailio/kamailio/commit/17c8fad3fa5ea5c2dd1b6285508aa6156d9b4c3f.diff
Patch: https://github.com/kamailio/kamailio/commit/17c8fad3fa5ea5c2dd1b6285508aa6156d9b4c3f.patch

---

diff --git a/modules/cfgutils/cfgutils.c b/modules/cfgutils/cfgutils.c
index 8d8dc8e..5ece20f 100644
--- a/modules/cfgutils/cfgutils.c
+++ b/modules/cfgutils/cfgutils.c
@@ -1089,7 +1089,7 @@ int bind_cfgutils(cfgutils_api_t *api)
 
 
 /**
- *
+ * KEMI exports
  */
 static sr_kemi_t sr_kemi_cfgutils_exports[] = {
 	{ str_init("cfgutils"), str_init("lock"),
@@ -1102,6 +1102,11 @@ static sr_kemi_t sr_kemi_cfgutils_exports[] = {
 		{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
+	{ str_init("cfgutils"), str_init("trylock"),
+		SR_KEMIP_INT, cfg_trylock,
+		{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
+			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+	},
 
 	{ {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
 };




More information about the sr-dev mailing list