33#define MWP_RT_NOT_SUPPORTED -2
34#define MWP_RT_BAD_PARAM -3
35#define MWP_RT_BAD_INPUT -4
41#define MWP_PARSER_MASK_NONE 0x00000000u
42#define MWP_PARSER_MASK_GS1 0x00000001u
43#define MWP_PARSER_MASK_IUID 0x00000002u
44#define MWP_PARSER_MASK_ISBT 0x00000004u
45#define MWP_PARSER_MASK_AAMVA 0x00000008u
46#define MWP_PARSER_MASK_HIBC 0x00000010u
47#define MWP_PARSER_MASK_SCM 0x00000020u
52#define UID_ERROR_INVALID_HEADER -1
53#define UID_ERROR_INVALID_FORMAT -2
54#define UID_ERROR_INVALID_EI -3.0
55#define UID_ERROR_INVALID_CAGE -3.1
56#define UID_ERROR_INVALID_DUNS -3.2
57#define UID_ERROR_INVALID_DODAAC -3.3
58#define UID_ERROR_INVALID_GS1COMP -3.4
59#define UID_ERROR_INVALID_PN -4
60#define UID_ERROR_INVALID_SN -5
61#define UID_ERROR_INVALID_UII -6
62#define UID_ERROR_INVALID_LOT -7
63#define UID_ERROR_GS_MISSING -8
64#define UID_ERROR_RS_MISSING -9
65#define UID_ERROR_EOT_MISSING -10
66#define UID_ERROR_NO_SN -11
67#define UID_ERROR_NO_EI -12
68#define UID_ERROR_NO_PN -13
69#define UID_ERROR_NO_LOT -14
70#define UID_ERROR_DUPLICATE_DQ -15
71#define UID_ERROR_DUPLICATE_UII -16
72#define UID_ERROR_DUPLICATE_LOT -17
73#define UID_ERROR_DUPLICATE_SN -18
74#define UID_ERROR_DUPLICATE_EI -19
75#define UID_ERROR_LOT_PN_CONFLICT -20
76#define UID_ERROR_MISSING_REQ -21
77#define UID_ERROR_INVALID_IAC -22
78#define UID_ERROR_INVALID_TEI -23
79#define UID_ERROR_NOT_ENOUGHT_MEMORY -24
83#define UID_WARN_EXTRA_CHARS 91
84#define UID_WARN_UNNEEDED_DATA 92
85#define UID_WARN_SPACE_AROUND 93
86#define UID_WARN_UNKNOWN_DQ 94
87#define UID_WARN_OBSOLETE_FORMAT 95
91#define AAMVA_ERROR_INVALID_FORMAT -1
92#define AAMVA_ERROR_INVALID_HEADER -2
93#define AAMVA_ERROR_INVALID_IIN -3
94#define NOT_ENOUGHT_MEMORY -4
95#define AAMVA_ERROR_INVALID_JN -5
96#define AAMVA_ERROR_INVALID_NENTIRES -6
100#define AAMVA_WARNING_MISSING_MANDATORY_FIELDS 1
104#define SCM_ERROR_INVALID_FORMAT -1
105#define SCM_ERROR_INVALID_CODE -2
106#define SCM_ERROR_ELEMENT_NOT_FOUND -3
107#define SCM_ERROR_CANT_ALLOCATE_MEMORY -4
110#define SCM_WARNING_LENGTH_OUT_OF_BOUNDS 1
111#define SCM_WARNING_FIELD_EXCEEDS_MAX_LENGTH 2
112#define SCM_WARNING_INVALID_TERMINATOR 3
160 MWP_getFormattedText(
const int parser_type,
const unsigned char * p_input,
const int inputLength,
unsigned char **pp_output);
174 MWP_getJSON(
const int parser_type,
const unsigned char* p_input,
const int inputLength,
unsigned char **pp_output);
unsigned int uint32_t
Definition: BarcodeScanner.h:22
double MWP_getJSON(const int parser_type, const unsigned char *p_input, const int inputLength, unsigned char **pp_output)
double MWP_getFormattedText(const int parser_type, const unsigned char *p_input, const int inputLength, unsigned char **pp_output)
int MWP_registerParser(const uint32_t parserMask, const char *userName, const char *key)
unsigned int MWP_getSupportedParsers(void)
Returns supported parsers in this library release.