diff options
author | Leo Uino <leo@norisys.jp> | 2011-07-15 15:26:11 +0900 |
---|---|---|
committer | Leo Uino <leo@norisys.jp> | 2011-07-15 20:22:30 +0900 |
commit | 27e4017efca48bf053c8e0e6bb083898e7f9833b (patch) | |
tree | 6db9ae8899474d9b242be12ccdee26564a20c3cb /lpg/libqr | |
parent | bea5cbf43b7074fe59c400edaa294153d18fb325 (diff) | |
download | pdf-simple-sign-27e4017efca48bf053c8e0e6bb083898e7f9833b.tar.gz pdf-simple-sign-27e4017efca48bf053c8e0e6bb083898e7f9833b.tar.xz pdf-simple-sign-27e4017efca48bf053c8e0e6bb083898e7f9833b.zip |
Add version.h
Diffstat (limited to 'lpg/libqr')
-rw-r--r-- | lpg/libqr/qr/version.h | 10 | ||||
-rw-r--r-- | lpg/libqr/qrgen.c | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lpg/libqr/qr/version.h b/lpg/libqr/qr/version.h new file mode 100644 index 0000000..cd263c0 --- /dev/null +++ b/lpg/libqr/qr/version.h @@ -0,0 +1,10 @@ +#ifndef QR_VERSION_H +#define QR_VERSION_H + +#define QR_VERSION_MAJOR 0 +#define QR_VERSION_MINOR 3 + +#define QR_VERSION "0.3" + +#endif + diff --git a/lpg/libqr/qrgen.c b/lpg/libqr/qrgen.c index b95db0a..6098231 100644 --- a/lpg/libqr/qrgen.c +++ b/lpg/libqr/qrgen.c @@ -10,6 +10,7 @@ #include <qr/bitstream.h> #include <qr/code.h> #include <qr/data.h> +#include <qr/version.h> struct config { int version; @@ -223,7 +224,7 @@ int main(int argc, char ** argv) { if (conf.ansi) output_ansi(code->modules); else - output_pbm(code->modules, "qrgen v0.1"); + output_pbm(code->modules, "libqr v" QR_VERSION); qr_code_destroy(code); |