104 #if defined(__cplusplus)
136 #define QRSPEC_VERSION_MAX 40
141 #define MQRSPEC_VERSION_MAX 4
566 #if defined(__cplusplus)
EXTRAS_EXPORT void QRcode_List_free(QRcode_List *qrlist)
Free the QRcode_List.
EXTRAS_EXPORT void QRinput_free(QRinput *input)
Free the input object.
EXTRAS_EXPORT QRinput * QRinput_new2(int version, QRecLevel level)
Instantiate an input data object.
EXTRAS_EXPORT int QRinput_append(QRinput *input, QRencodeMode mode, int size, const unsigned char *data)
Append data to an input object.
EXTRAS_EXPORT int QRinput_appendECIheader(QRinput *input, unsigned int ecinum)
Append ECI header.
EXTRAS_EXPORT QRcode * QRcode_encodeStringMQR(const char *string, int version, QRecLevel level, QRencodeMode hint, int casesensitive)
Micro QR Code version of QRcode_encodeString().
EXTRAS_EXPORT int QRcode_List_size(QRcode_List *qrlist)
Return the number of symbols included in a QRcode_List.
EXTRAS_EXPORT int QRinput_Struct_insertStructuredAppendHeaders(QRinput_Struct *s)
Insert structured-append headers to the input structure.
EXTRAS_EXPORT QRcode_List * QRcode_encodeInputStructured(QRinput_Struct *s)
Create structured symbols from the input data.
EXTRAS_EXPORT QRinput * QRinput_new(void)
Instantiate an input data object.
EXTRAS_EXPORT void QRcode_free(QRcode *qrcode)
Free the instance of QRcode class.
EXTRAS_EXPORT QRecLevel QRinput_getErrorCorrectionLevel(QRinput *input)
Get current error correction level.
EXTRAS_EXPORT QRcode * QRcode_encodeString8bitMQR(const char *string, int version, QRecLevel level)
Micro QR Code version of QRcode_encodeString8bit().
EXTRAS_EXPORT int QRinput_check(QRencodeMode mode, int size, const unsigned char *data)
Validate the input data.
EXTRAS_EXPORT QRcode * QRcode_encodeString(const char *string, int version, QRecLevel level, QRencodeMode hint, int casesensitive)
Create a symbol from the string.
EXTRAS_EXPORT int QRinput_setVersionAndErrorCorrectionLevel(QRinput *input, int version, QRecLevel level)
Set version and error correction level of the QR code at once.
EXTRAS_EXPORT char * QRcode_APIVersionString(void)
Return a string that identifies the library version.
QRecLevel
Level of error correction.
EXTRAS_EXPORT int QRinput_setVersion(QRinput *input, int version)
Set version of the QR code that is to be encoded.
EXTRAS_EXPORT QRinput_Struct * QRinput_Struct_new(void)
Instantiate a set of input data object.
EXTRAS_EXPORT int QRinput_getVersion(QRinput *input)
Get current version.
EXTRAS_EXPORT void QRcode_clearCache(void) __attribute__((deprecated))
EXTRAS_EXPORT QRinput_Struct * QRinput_splitQRinputToStruct(QRinput *input)
Split a QRinput to QRinput_Struct.
EXTRAS_EXPORT QRinput * QRinput_newMQR(int version, QRecLevel level)
Instantiate an input data object.
EXTRAS_EXPORT void QRinput_Struct_free(QRinput_Struct *s)
Free all of QRinput in the set.
QRencodeMode
Encoding mode.
EXTRAS_EXPORT QRcode_List * QRcode_encodeStringStructured(const char *string, int version, QRecLevel level, QRencodeMode hint, int casesensitive)
Create structured symbols from the string.
EXTRAS_EXPORT QRcode * QRcode_encodeInput(QRinput *input)
Create a symbol from the input data.
EXTRAS_EXPORT int QRinput_setErrorCorrectionLevel(QRinput *input, QRecLevel level)
Set error correction level of the QR code that is to be encoded.
Singly-linked list of QRcode.
EXTRAS_EXPORT QRcode * QRcode_encodeString8bit(const char *string, int version, QRecLevel level)
Same to QRcode_encodeString(), but encode whole data in 8-bit mode.
unsigned char * data
symbol data
EXTRAS_EXPORT void QRinput_Struct_setParity(QRinput_Struct *s, unsigned char parity)
Set parity of structured symbols.
EXTRAS_EXPORT QRcode * QRcode_encodeDataMQR(int size, const unsigned char *data, int version, QRecLevel level)
Micro QR Code version of QRcode_encodeData().
EXTRAS_EXPORT int QRinput_setFNC1First(QRinput *input)
Set FNC1-1st position flag.
struct _QRcode_List QRcode_List
Singly-linked list of QRcode.
EXTRAS_EXPORT QRcode * QRcode_encodeData(int size, const unsigned char *data, int version, QRecLevel level)
Encode byte stream (may include '\0') in 8-bit mode.
int width
width of the symbol
EXTRAS_EXPORT QRcode_List * QRcode_encodeDataStructured(int size, const unsigned char *data, int version, QRecLevel level)
Create structured symbols from byte stream (may include '\0').
int version
version of the symbol
EXTRAS_EXPORT QRcode_List * QRcode_encodeString8bitStructured(const char *string, int version, QRecLevel level)
Same to QRcode_encodeStringStructured(), but encode whole data in 8-bit mode.
EXTRAS_EXPORT int QRinput_Struct_appendInput(QRinput_Struct *s, QRinput *input)
Append a QRinput object to the set.
Terminator (NUL character). Internal use only.
EXTRAS_EXPORT void QRcode_APIVersion(int *major_version, int *minor_version, int *micro_version)
Return a string that identifies the library version.
EXTRAS_EXPORT int QRinput_setFNC1Second(QRinput *input, unsigned char appid)
Set FNC1-2nd position flag and application identifier.
struct _QRcode_List * next