aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/code-common.h
diff options
context:
space:
mode:
authorLeo Howell <leo@lwh.jp>2009-09-05 09:33:22 +0900
committerLeo Howell <leo@lwh.jp>2009-09-05 09:33:22 +0900
commitef01767c732629b7eff7d1601e76a1bac58f5bfd (patch)
treeac29871fd3c6f1bab8dc8e3c51e33292d5544a96 /lpg/libqr/code-common.h
downloadpdf-simple-sign-ef01767c732629b7eff7d1601e76a1bac58f5bfd.tar.gz
pdf-simple-sign-ef01767c732629b7eff7d1601e76a1bac58f5bfd.tar.xz
pdf-simple-sign-ef01767c732629b7eff7d1601e76a1bac58f5bfd.zip
The story so far
Diffstat (limited to 'lpg/libqr/code-common.h')
-rw-r--r--lpg/libqr/code-common.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lpg/libqr/code-common.h b/lpg/libqr/code-common.h
new file mode 100644
index 0000000..52666e6
--- /dev/null
+++ b/lpg/libqr/code-common.h
@@ -0,0 +1,19 @@
+#ifndef CODE_COMMON_H
+#define CODE_COMMON_H
+
+#include <qr/code.h>
+#include "bitstream.h"
+
+struct qr_code {
+ int format;
+ unsigned char * modules;
+ size_t line_stride;
+};
+
+int code_side_length(int format);
+int code_finder_count(int format);
+
+size_t code_total_capacity(int format);
+
+#endif
+