From 682c2c553b7083645dd5147cdf3ff8650f08a0fd Mon Sep 17 00:00:00 2001 From: Leo Howell Date: Sat, 14 Nov 2009 18:13:58 +0900 Subject: Store ec level in qr_data struct --- lpg/libqr/qr/code.h | 10 +--------- lpg/libqr/qr/data.h | 8 ++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'lpg/libqr/qr') diff --git a/lpg/libqr/qr/code.h b/lpg/libqr/qr/code.h index dba0040..3c14c1f 100644 --- a/lpg/libqr/qr/code.h +++ b/lpg/libqr/qr/code.h @@ -4,15 +4,7 @@ #include #include "types.h" -enum qr_ec_level { - QR_EC_LEVEL_L = 0x1, - QR_EC_LEVEL_M = 0x0, - QR_EC_LEVEL_Q = 0x3, - QR_EC_LEVEL_H = 0x2 -}; - -struct qr_code * qr_code_create(enum qr_ec_level ec, - const struct qr_data * data); +struct qr_code * qr_code_create(const struct qr_data * data); void qr_code_destroy(struct qr_code *); diff --git a/lpg/libqr/qr/data.h b/lpg/libqr/qr/data.h index 5fbdded..39494f4 100644 --- a/lpg/libqr/qr/data.h +++ b/lpg/libqr/qr/data.h @@ -15,7 +15,15 @@ enum qr_data_type { QR_DATA_FNC1 = 9 }; +enum qr_ec_level { + QR_EC_LEVEL_L = 0x1, + QR_EC_LEVEL_M = 0x0, + QR_EC_LEVEL_Q = 0x3, + QR_EC_LEVEL_H = 0x2 +}; + struct qr_data * qr_create_data(int format, /* 1 ~ 40 */ + enum qr_ec_level ec, enum qr_data_type type, const char * input, size_t length); -- cgit v1.2.3-70-g09d2