aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-06-16 01:40:04 +0000
committerGuy Harris <guy@alum.mit.edu>2013-06-16 01:40:04 +0000
commitca0f8ee6da0766787fb5f8e7f5c815b9ed88fbcc (patch)
treeb39e9d0ffdaac5c76a2370a9428b070a15a48ced /wiretap
parent8c9edf12800bc6d68894dc457e7ebaf994429da8 (diff)
Make the libwiretap Buffer routines usable from C++, and fix the C++ UI
code to handle the API changes for the seek-read routines. svn path=/trunk/; revision=49950
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/buffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wiretap/buffer.h b/wiretap/buffer.h
index 17265e1b6b..792ae0fd5c 100644
--- a/wiretap/buffer.h
+++ b/wiretap/buffer.h
@@ -27,6 +27,10 @@
#include <glib.h>
#include "ws_symbol_export.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define SOME_FUNCTIONS_ARE_DEFINES
typedef struct Buffer {
@@ -63,4 +67,8 @@ void buffer_remove_start(Buffer* buffer, gsize bytes);
void buffer_append_buffer(Buffer* buffer, Buffer* src_buffer);
#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif