[asterisk-commits] russell: branch group/newcdr r201986 - /team/group/newcdr/include/asterisk/cel.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 19 14:07:03 CDT 2009


Author: russell
Date: Fri Jun 19 14:06:59 2009
New Revision: 201986

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=201986
Log:
Don't define constants a second time for a new header, add C++ protection

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

Modified: team/group/newcdr/include/asterisk/cel.h
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/include/asterisk/cel.h?view=diff&rev=201986&r1=201985&r2=201986
==============================================================================
--- team/group/newcdr/include/asterisk/cel.h (original)
+++ team/group/newcdr/include/asterisk/cel.h Fri Jun 19 14:06:59 2009
@@ -24,17 +24,18 @@
 #ifndef __AST_CEL_H__
 #define __AST_CEL_H__
 
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
+#include "asterisk/event.h"
+
 /*! AMA Flags */
 enum ast_cel_ama_flags {
 	AST_CEL_OMIT,
 	AST_CEL_BILLING,
 	AST_CEL_DOCUMENTATION,
 };
-
-#define AST_MAX_USER_FIELD    256
-#define AST_MAX_ACCOUNT_CODE  20
-
-#include "asterisk/event.h"
 
 enum ast_cel_eventtype {
 	/*! channel birth */
@@ -135,5 +136,8 @@
 void ast_cel_engine_term(void);
 int ast_cel_engine_reload(void);
 
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
 
 #endif /* __AST_CEL_H__ */




More information about the asterisk-commits mailing list