[asterisk-commits] file: trunk r81364 - /trunk/include/asterisk/event.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 29 16:55:16 CDT 2007


Author: file
Date: Wed Aug 29 16:55:15 2007
New Revision: 81364

URL: http://svn.digium.com/view/asterisk?view=rev&rev=81364
Log:
Make the event header file work under C++.

Modified:
    trunk/include/asterisk/event.h

Modified: trunk/include/asterisk/event.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/event.h?view=diff&rev=81364&r1=81363&r2=81364
==============================================================================
--- trunk/include/asterisk/event.h (original)
+++ trunk/include/asterisk/event.h Wed Aug 29 16:55:15 2007
@@ -53,6 +53,10 @@
 #ifndef AST_EVENT_H
 #define AST_EVENT_H
 
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
 #include "asterisk/event_defs.h"
 
 /*! 
@@ -470,4 +474,8 @@
  */
 void *ast_event_iterator_get_ie_raw(struct ast_event_iterator *iterator);
 
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
 #endif /* AST_EVENT_H */




More information about the asterisk-commits mailing list