projects
/
libsigrokdecode.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib headers: Add 'extern "C"' for C++ usage.
[libsigrokdecode.git]
/
sigrokdecode.h
diff --git
a/sigrokdecode.h
b/sigrokdecode.h
index 88776112d4cf5306f6fa59fd49f0cfa8b96778c2..4876b5bd7f8c1480ccc344f0cb3fe01319240e26 100644
(file)
--- a/
sigrokdecode.h
+++ b/
sigrokdecode.h
@@
-25,6
+25,10
@@
#include <stdint.h>
#include <glib.h>
#include <stdint.h>
#include <glib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Status/error codes returned by libsigrokdecode functions.
*
/*
* 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);
uint8_t **outbuf, uint64_t *outbuflen);
int sigrokdecode_shutdown(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif