1 /*
2 This file was generated by the following command:
3 
4 cfunctions qrencode.c
5 
6 */
7 #ifndef CFH_QRENCODE_H
8 #define CFH_QRENCODE_H
9 
10 #line 9 "qrencode.c"
11 typedef struct qr {
12     char * input;
13     int input_length;
14     unsigned level;
15     unsigned version;
16     unsigned char * strinbuf;
17     unsigned char * qrframe;
18     unsigned char *framebase;
19     unsigned char *framask;
20     unsigned char *rlens;
21     unsigned char  WD;
22     unsigned char WDB;
23     unsigned char neccblk1;
24     unsigned char neccblk2;
25     unsigned char datablkw;
26     unsigned char eccblkwid;
27 
28     unsigned initialized : 1;
29 }
30 qr_t;
31 #define QRBIT(f,x,y) ( ( qr->f[((x)>>3) + (y) * qr->WDB] >> (7-((x) & 7 ))) & 1 )
32 #define QR_MINIMUM_VERSION 1
33 #define QR_MAXIMUM_VERSION 40
34 #define QR_MINIMUM_LEVEL 1
35 #define QR_MAXIMUM_LEVEL 4
36 
37 #line 152 "qrencode.c"
38 void initframe (qr_t* qr);
39 
40 #line 255 "qrencode.c"
41 unsigned initecc (qr_t* qr);
42 
43 #line 289 "qrencode.c"
44 unsigned initeccsize (qr_t* qr);
45 
46 #line 757 "qrencode.c"
47 void qrencode (qr_t* qr);
48 
49 #line 790 "qrencode.c"
50 void qrfree (qr_t* qr);
51 
52 #endif /* CFH_QRENCODE_H */
53