diff options
Diffstat (limited to 'lpg')
-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); |