aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Uino <leo@norisys.jp>2011-07-15 15:26:11 +0900
committerLeo Uino <leo@norisys.jp>2011-07-15 20:22:30 +0900
commit9978bf21d203034199cb1149b407459873168744 (patch)
tree249105893e81228d215ce6e4648fc97b72ff4b90
parent2bec096decd8d735c2b00aa4f2aaf5b050dc17af (diff)
downloadwork-tools-9978bf21d203034199cb1149b407459873168744.tar.gz
work-tools-9978bf21d203034199cb1149b407459873168744.tar.xz
work-tools-9978bf21d203034199cb1149b407459873168744.zip
Add version.h
-rw-r--r--libqr/qr/version.h10
-rw-r--r--libqr/qrgen.c3
2 files changed, 12 insertions, 1 deletions
diff --git a/libqr/qr/version.h b/libqr/qr/version.h
new file mode 100644
index 0000000..cd263c0
--- /dev/null
+++ b/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/libqr/qrgen.c b/libqr/qrgen.c
index b95db0a..6098231 100644
--- a/libqr/qrgen.c
+++ b/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);