aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/data-common.h
blob: bc2b381a1a8efd54dccd57017fb3ea2a600cbea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef DATA_COMMON_H
#define DATA_COMMON_H

#include <qr/data.h>

#include "qr-bitstream.h"

struct qr_data {
        int                version; /* 1 ~ 40 */
        struct qr_bitstream * bits;
        size_t             offset;
};

extern const enum qr_data_type QR_TYPE_CODES[16];

size_t get_size_field_length(int version, enum qr_data_type);

#endif