diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-06-16 01:40:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-06-16 01:40:04 +0000 |
commit | ca0f8ee6da0766787fb5f8e7f5c815b9ed88fbcc (patch) | |
tree | b39e9d0ffdaac5c76a2370a9428b070a15a48ced /wiretap | |
parent | 8c9edf12800bc6d68894dc457e7ebaf994429da8 (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.h | 8 |
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 |