add module_exists api call

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8984 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2008-07-10 14:41:31 +00:00
parent c2dd28e3e5
commit 7f511482d2
3 changed files with 40 additions and 0 deletions
+7
View File
@@ -241,6 +241,13 @@ SWITCH_DECLARE(switch_status_t) switch_api_execute(const char *cmd, const char *
*/
SWITCH_DECLARE(switch_status_t) switch_loadable_module_load_module(char *dir, char *fname, switch_bool_t runtime, const char **err);
/*!
\brief Check if a module is loaded
\param mod the module name
\return the status
*/
SWITCH_DECLARE(switch_status_t) switch_loadable_module_exists(const char *mod);
/*!
\brief Unoad a module
\param dir the directory where the module resides