[asterisk-commits] murf: branch group/newcdr r177725 - in /team/group/newcdr: include/asterisk/ ...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 20 15:23:50 CST 2009


Author: murf
Date: Fri Feb 20 15:23:48 2009
New Revision: 177725

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177725
Log:
I needed to pull the configevent2eventtype func into the API; and to rename it to ast_cel_str2eventtype

Modified:
    team/group/newcdr/include/asterisk/cel.h
    team/group/newcdr/main/cel.c

Modified: team/group/newcdr/include/asterisk/cel.h
URL: http://svn.digium.com/svn-view/asterisk/team/group/newcdr/include/asterisk/cel.h?view=diff&rev=177725&r1=177724&r2=177725
==============================================================================
--- team/group/newcdr/include/asterisk/cel.h (original)
+++ team/group/newcdr/include/asterisk/cel.h Fri Feb 20 15:23:48 2009
@@ -107,6 +107,8 @@
 struct ast_cel *ast_cel_alloc(void);
 
 char *ast_cel_eventtype2str(enum ast_cel_eventtype eventtype);
+enum ast_cel_eventtype ast_cel_str2eventtype(char *eventname);
+
 
 /*! Converts AMA flag to printable string */
 char *ast_cel_flags2str(int flag);

Modified: team/group/newcdr/main/cel.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/newcdr/main/cel.c?view=diff&rev=177725&r1=177724&r2=177725
==============================================================================
--- team/group/newcdr/main/cel.c (original)
+++ team/group/newcdr/main/cel.c Fri Feb 20 15:23:48 2009
@@ -90,7 +90,7 @@
 
 static struct ast_cli_entry cli_status = AST_CLI_DEFINE(handle_cli_status, "Display the CEL status");
 
-static enum ast_cel_eventtype configevent2eventtype(char *eventname)
+enum ast_cel_eventtype ast_cel_str2eventtype(char *eventname)
 {
 	if (!strcasecmp(eventname,"ALL")) {
 		return 0;
@@ -234,7 +234,7 @@
 						}
 						*(t3+1) = 0;
 						/* t1 now points to null-terminated entry */
-						et = configevent2eventtype(t1);
+						et = ast_cel_str2eventtype(t1);
 						if ((int)et == 0) { /* all events */
 							eventset = -1; /* turn on all the bits */
 						} else if ((int)et == -1) {  /* unmatched event */




More information about the asterisk-commits mailing list