summaryrefslogtreecommitdiff
path: root/include/asterisk/event.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-08-29 21:55:15 +0000
committerJoshua Colp <jcolp@digium.com>2007-08-29 21:55:15 +0000
commit5a8feb826d2bb6b13994b07c46de0c9919316651 (patch)
treee1e1f7c01d39cb22a0bb37d699fcb3683bc39c00 /include/asterisk/event.h
parent876ebb3ec706f8503c8c73e3e147cc044befe97f (diff)
Make the event header file work under C++.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/event.h')
-rw-r--r--include/asterisk/event.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/event.h b/include/asterisk/event.h
index 3133234bc..86d3358fc 100644
--- a/include/asterisk/event.h
+++ b/include/asterisk/event.h
@@ -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 @@ const char *ast_event_iterator_get_ie_str(struct ast_event_iterator *iterator);
*/
void *ast_event_iterator_get_ie_raw(struct ast_event_iterator *iterator);
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
#endif /* AST_EVENT_H */