aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/data-create.c
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/data-create.c')
-rw-r--r--lpg/libqr/data-create.c3
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;