diff options
author | Leo Howell <leo@lwh.jp> | 2009-11-14 20:24:57 +0900 |
---|---|---|
committer | Leo Howell <leo@lwh.jp> | 2009-11-14 20:24:57 +0900 |
commit | c2e4639d2ebefbeb7f8b7e1826ae2391c6876a5a (patch) | |
tree | 8f208b60816aa1f7390b249c21f0771a8bce7c6e /lpg/libqr/data-common.c | |
parent | 2a5548351d9814a8a23eff1e43e14008ea4ae1d0 (diff) | |
download | pdf-simple-sign-c2e4639d2ebefbeb7f8b7e1826ae2391c6876a5a.tar.gz pdf-simple-sign-c2e4639d2ebefbeb7f8b7e1826ae2391c6876a5a.tar.xz pdf-simple-sign-c2e4639d2ebefbeb7f8b7e1826ae2391c6876a5a.zip |
Merge some files
Diffstat (limited to 'lpg/libqr/data-common.c')
-rw-r--r-- | lpg/libqr/data-common.c | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/lpg/libqr/data-common.c b/lpg/libqr/data-common.c index ac2f198..8a05f4a 100644 --- a/lpg/libqr/data-common.c +++ b/lpg/libqr/data-common.c @@ -1,27 +1,7 @@ #include <stdlib.h> -#include <qr/data.h> - -#include "qr-bitstream.h" -#include "data-common.h" -const enum qr_data_type QR_TYPE_CODES[16] = { - QR_DATA_INVALID, /* 0000 */ - QR_DATA_NUMERIC, /* 0001 */ - QR_DATA_ALPHA, /* 0010 */ - QR_DATA_MIXED, /* 0011 */ - QR_DATA_8BIT, /* 0100 */ - QR_DATA_FNC1, /* 0101 */ - QR_DATA_INVALID, /* 0110 */ - QR_DATA_ECI, /* 0111 */ - QR_DATA_KANJI, /* 1000 */ - QR_DATA_FNC1, /* 1001 */ - QR_DATA_INVALID, /* 1010 */ - QR_DATA_INVALID, /* 1011 */ - QR_DATA_INVALID, /* 1100 */ - QR_DATA_INVALID, /* 1101 */ - QR_DATA_INVALID, /* 1110 */ - QR_DATA_INVALID, /* 1111 */ -}; +#include <qr/bitstream.h> +#include <qr/data.h> void qr_free_data(struct qr_data * data) { @@ -29,7 +9,7 @@ void qr_free_data(struct qr_data * data) free(data); } -size_t get_size_field_length(int version, enum qr_data_type type) +size_t qr_data_size_field_length(int version, enum qr_data_type type) { static const size_t QR_SIZE_LENGTHS[3][4] = { { 10, 9, 8, 8 }, |