diff options
author | Mark Spencer <markster@digium.com> | 2005-01-16 22:59:30 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-01-16 22:59:30 +0000 |
commit | 1496da97fb0984fa7734d91607960aea83d173fa (patch) | |
tree | 84c2923fd344e5bf0c06914b1cde63e6eefded0c /include/asterisk | |
parent | 261b4a85e13fec22d3d4e7759523608232432d3c (diff) |
Optimize module loading (bug #3356)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4814 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rwxr-xr-x | include/asterisk/config.h | 4 | ||||
-rwxr-xr-x | include/asterisk/module.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h index 4e7569c26..b8be39bf7 100755 --- a/include/asterisk/config.h +++ b/include/asterisk/config.h @@ -68,7 +68,7 @@ char *ast_category_browse(struct ast_config *config, char *prev); * List variables of config file * Returns ast_variable list on success, or NULL on failure */ -struct ast_variable *ast_variable_browse(struct ast_config *config, char *category); +struct ast_variable *ast_variable_browse(const struct ast_config *config, const char *category); /*! Gets a variable */ /*! @@ -78,7 +78,7 @@ struct ast_variable *ast_variable_browse(struct ast_config *config, char *catego * Goes through a given config file in the given category and searches for the given variable * Returns the variable value on success, or NULL if unable to find it. * Retrieve a specific variable */ -char *ast_variable_retrieve(struct ast_config *config, char *category, char *value); +char *ast_variable_retrieve(const struct ast_config *config, const char *category, const char *value); /*! Make sure something is true */ /*! diff --git a/include/asterisk/module.h b/include/asterisk/module.h index 41cb6f39a..f1cc115f1 100755 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -89,7 +89,7 @@ this paragraph under other terms as well." * it will do the rest. * It returns 0 on success, -1 on error */ -int ast_load_resource(char *resource_name); +int ast_load_resource(const char *resource_name); /*! Unloads a module */ /*! @@ -99,7 +99,7 @@ int ast_load_resource(char *resource_name); * it will not unload a module with a usecount > 0. However, if it is set, * it will unload the module regardless of consequences (NOT_RECOMMENDED) */ -int ast_unload_resource(char *resource_name, int force); +int ast_unload_resource(const char *resource_name, int force); /*! Notify when usecount has been changed */ /*! |