aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/qr/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/qr/parse.h')
-rw-r--r--lpg/libqr/qr/parse.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lpg/libqr/qr/parse.h b/lpg/libqr/qr/parse.h
index 07a0424..0e08354 100644
--- a/lpg/libqr/qr/parse.h
+++ b/lpg/libqr/qr/parse.h
@@ -3,6 +3,10 @@
#include "data.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int qr_code_parse(const void * buffer,
size_t line_bits,
size_t line_stride,
@@ -12,5 +16,9 @@ int qr_code_parse(const void * buffer,
int qr_decode_format(unsigned long bits, enum qr_ec_level * ec, int * mask);
int qr_decode_version(unsigned long bits, int * version);
+#ifdef __cplusplus
+}
+#endif
+
#endif