Module: sip-router
Branch: kamailio_3.0
Commit: d4db8304926d30a4244b9ee05d21b5614eae5f94
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d4db830…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Jan 4 21:32:24 2010 +0100
core: define module_loaded to use find_module_by_name
- it was declared but not implemented
- in use by snmpstats and perlvdb modules
- reported by Santiago Gimeno
---
sr_module.h | 18 ++++--------------
1 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/sr_module.h b/sr_module.h
index 426729c..10afc55 100644
--- a/sr_module.h
+++ b/sr_module.h
@@ -389,6 +389,10 @@ int init_child(int rank);
int init_modules(void);
struct sr_module* find_module_by_name(char* mod);
+/* true if the module with name 'mod_name' is loaded */
+#define module_loaded(mod_name) (find_module_by_name(mod_name)!=0)
+
+
/*! \brief
* Find a parameter with given type and return it's
* address in memory
@@ -520,18 +524,4 @@ int get_int_fparam(int* dst, struct sip_msg* msg, fparam_t* param);
int get_regex_fparam(regex_t *dst, struct sip_msg* msg, fparam_t* param);
-/* functions needed for kamailio/openser compatibility */
-
-/*! \brief Check if module is loaded
- * \return Returns 1 if the module with name 'name' is loaded, and zero
otherwise. */
-int module_loaded(char *name);
-
-/*! \brief Counts the additional the number of processes
- requested by modules */
-int count_module_procs(void);
-
-
-/*! \brief Forks and starts the additional processes required by modules */
-int start_module_procs(void);
-
#endif /* sr_module_h */