aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/qr/parse.h
diff options
context:
space:
mode:
authorLeo Uino <leo@norisys.jp>2011-07-14 11:06:47 +0900
committerLeo Uino <leo@norisys.jp>2011-07-14 11:06:47 +0900
commit35baea42d794bec1fd5f2200f1f6f48877c5c26c (patch)
tree835460220763ca90bd17ed2c91999ebd28731ca7 /lpg/libqr/qr/parse.h
parent44fc0ba93934ea9915fcd4f1902f49de57f2a949 (diff)
downloadpdf-simple-sign-35baea42d794bec1fd5f2200f1f6f48877c5c26c.tar.gz
pdf-simple-sign-35baea42d794bec1fd5f2200f1f6f48877c5c26c.tar.xz
pdf-simple-sign-35baea42d794bec1fd5f2200f1f6f48877c5c26c.zip
First attempt at parsing
Diffstat (limited to 'lpg/libqr/qr/parse.h')
-rw-r--r--lpg/libqr/qr/parse.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lpg/libqr/qr/parse.h b/lpg/libqr/qr/parse.h
new file mode 100644
index 0000000..d7b8c4e
--- /dev/null
+++ b/lpg/libqr/qr/parse.h
@@ -0,0 +1,16 @@
+#ifndef QR_PARSE_H
+#define QR_PARSE_H
+
+#include "data.h"
+
+int qr_code_parse(const void * buffer,
+ size_t line_bits,
+ size_t line_stride,
+ size_t line_count,
+ struct qr_data ** data);
+
+int qr_decode_format(unsigned bits, enum qr_ec_level * ec, int * mask);
+int qr_decode_version(unsigned long bits, int * version);
+
+#endif
+