[Asterisk-cvs] asterisk/include/asterisk cdr.h, 1.21, 1.22 pbx.h, 1.42, 1.43

markster at lists.digium.com markster at lists.digium.com
Tue Mar 29 00:23:04 CST 2005


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

Modified Files:
	cdr.h pbx.h 
Log Message:
Allow functions to be written to (bug #2278, with mods)


Index: cdr.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/cdr.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- cdr.h	23 Feb 2005 22:48:47 -0000	1.21
+++ cdr.h	29 Mar 2005 06:16:49 -0000	1.22
@@ -89,7 +89,7 @@
 };
 
 extern void ast_cdr_getvar(struct ast_cdr *cdr, const char *name, char **ret, char *workspace, int workspacelen, int recur);
-extern int ast_cdr_setvar(struct ast_cdr *cdr, const char *name, char *value, int recur);
+extern int ast_cdr_setvar(struct ast_cdr *cdr, const char *name, const char *value, int recur);
 extern int ast_cdr_serialize_variables(struct ast_cdr *cdr, char *buf, size_t size, char delim, char sep, int recur);
 extern void ast_cdr_free_vars(struct ast_cdr *cdr, int recur);
 extern int ast_cdr_copy_vars(struct ast_cdr *to_cdr, struct ast_cdr *from_cdr);

Index: pbx.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/pbx.h,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- pbx.h	4 Mar 2005 06:36:18 -0000	1.42
+++ pbx.h	29 Mar 2005 06:16:49 -0000	1.43
@@ -58,7 +58,8 @@
 	char *name;
 	char *desc;
 	char *syntax;
-	char *(*function)(struct ast_channel *, char *, char *, char *, size_t);
+	char *(*read)(struct ast_channel *, char *, char *, char *, size_t);
+	void (*write)(struct ast_channel *, char *, char *, const char *);
 	struct ast_custom_function_obj *next;
 };
 
@@ -577,8 +578,8 @@
 struct ast_sw *ast_walk_context_switches(struct ast_context *con, struct ast_sw *sw);
 
 int pbx_builtin_serialize_variables(struct ast_channel *chan, char *buf, size_t size);
-extern char *pbx_builtin_getvar_helper(struct ast_channel *chan, char *name);
-extern void pbx_builtin_setvar_helper(struct ast_channel *chan, char *name, char *value);
+extern char *pbx_builtin_getvar_helper(struct ast_channel *chan, const char *name);
+extern void pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const char *value);
 extern void pbx_retrieve_variable(struct ast_channel *c, const char *var, char **ret, char *workspace, int workspacelen, struct varshead *headp);
 extern void pbx_builtin_clear_globals(void);
 extern int pbx_builtin_setvar(struct ast_channel *chan, void *data);




More information about the svn-commits mailing list