aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/qr/data.h
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/qr/data.h')
-rw-r--r--lpg/libqr/qr/data.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lpg/libqr/qr/data.h b/lpg/libqr/qr/data.h
index f2b4b45..06600ab 100644
--- a/lpg/libqr/qr/data.h
+++ b/lpg/libqr/qr/data.h
@@ -4,6 +4,10 @@
#include <stddef.h>
#include "types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct qr_data {
int version; /* 1 ~ 40 */
enum qr_ec_level ec;
@@ -29,5 +33,9 @@ enum qr_data_type qr_parse_data(const struct qr_data * input,
char ** output,
size_t * length);
+#ifdef __cplusplus
+}
+#endif
+
#endif