diff options
author | Leo Howell <leo@lwh.jp> | 2009-11-14 18:13:58 +0900 |
---|---|---|
committer | Leo Howell <leo@lwh.jp> | 2009-11-14 18:21:20 +0900 |
commit | 682c2c553b7083645dd5147cdf3ff8650f08a0fd (patch) | |
tree | b162857e26663af24e0c51ce9228f0dff132367a /lpg/libqr/data-create.c | |
parent | 7ccc90b391c269ce3453275ff8725849ea52ccbe (diff) | |
download | pdf-simple-sign-682c2c553b7083645dd5147cdf3ff8650f08a0fd.tar.gz pdf-simple-sign-682c2c553b7083645dd5147cdf3ff8650f08a0fd.tar.xz pdf-simple-sign-682c2c553b7083645dd5147cdf3ff8650f08a0fd.zip |
Store ec level in qr_data struct
Diffstat (limited to 'lpg/libqr/data-create.c')
-rw-r--r-- | lpg/libqr/data-create.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lpg/libqr/data-create.c b/lpg/libqr/data-create.c index 2c2737f..27c6d4b 100644 --- a/lpg/libqr/data-create.c +++ b/lpg/libqr/data-create.c @@ -3,7 +3,6 @@ */ /** XXX: check that the data will fit! **/ -/** NOTE: should store ec type in qr_data **/ #include <ctype.h> #include <stdlib.h> @@ -174,6 +173,7 @@ static struct qr_data * encode_kanji(struct qr_data * data, } struct qr_data * qr_create_data(int version, + enum qr_ec_level ec, enum qr_data_type type, const char * input, size_t length) @@ -188,6 +188,7 @@ struct qr_data * qr_create_data(int version, return 0; data->version = version; + data->ec = ec; data->bits = qr_bitstream_create(); data->offset = 0; |