summaryrefslogtreecommitdiff
path: root/sigrokdecode.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-01-20 23:00:59 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2011-01-20 23:00:59 +0100
commit253f9603f8d022b2a948be0f2f572f5281f1b4e6 (patch)
treed675ab2633057888fd2cc1d71b8c25b182712a27 /sigrokdecode.h
parent81c9bc4448af804376f86cb3373ced99414071a9 (diff)
downloadlibsigrokdecode-253f9603f8d022b2a948be0f2f572f5281f1b4e6.tar.gz
libsigrokdecode-253f9603f8d022b2a948be0f2f572f5281f1b4e6.zip
lib headers: Add 'extern "C"' for C++ usage.
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r--sigrokdecode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h
index 8877611..4876b5b 100644
--- a/sigrokdecode.h
+++ b/sigrokdecode.h
@@ -25,6 +25,10 @@
#include <stdint.h>
#include <glib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Status/error codes returned by libsigrokdecode functions.
*
@@ -70,4 +74,8 @@ int sigrokdecode_run_decoder(struct sigrokdecode_decoder *dec,
uint8_t **outbuf, uint64_t *outbuflen);
int sigrokdecode_shutdown(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif