[Asterisk-cvs] asterisk/include/asterisk config.h, 1.14, 1.15 module.h, 1.15, 1.16

markster at lists.digium.com markster at lists.digium.com
Sun Jan 16 16:56:06 CST 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv23081/include/asterisk

Modified Files:
	config.h module.h 
Log Message:
Optimize module loading (bug #3356)


Index: config.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/config.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- config.h	16 Jan 2005 06:01:50 -0000	1.14
+++ config.h	16 Jan 2005 22:59:30 -0000	1.15
@@ -68,7 +68,7 @@
  * 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 @@
  * 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 */
 /*!

Index: module.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/module.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- module.h	15 Jan 2005 23:48:12 -0000	1.15
+++ module.h	16 Jan 2005 22:59:30 -0000	1.16
@@ -89,7 +89,7 @@
  * 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 @@
  * 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 */
 /*!




More information about the svn-commits mailing list