10 #ifndef KVAMEMOLIBXML_H 11 #define KVAMEMOLIBXML_H 54 #define XML_ERROR_MESSAGE_LENGTH 2048 175 KvaXmlStatus WINAPI
kvaXmlToBuffer (
const char *xmlbuf,
unsigned int xmllen,
char *outbuf,
unsigned int *outlen,
long *version);
246 KvaXmlStatus WINAPI
kvaBufferToXml (
const char *inbuf,
unsigned int inlen,
char *xmlbuf,
unsigned int *xmllen,
long *version,
const char * scriptpath);
531 #endif //KVAMEMOLIBXML_H int kvaToolsExprHasErrors(KvParseHandle *h, Token *t)
Too many active t-scripts for selected device.
Definition: kvamemolibxml.h:106
Using more than one external trigger requires firmware version 3.7 or better.
Definition: kvamemolibxml.h:117
A general error found during parsing.
Definition: kvamemolibxml.h:109
More than one active script is set as 'primary'.
Definition: kvamemolibxml.h:107
char * name
Definition: kvamemolibxml.h:377
struct tag_token * next
Definition: kvamemolibxml.h:382
There are more than one start up trigger defined.
Definition: kvamemolibxml.h:101
Internal errors, e.g. null pointers.
Definition: kvamemolibxml.h:80
KvaXmlStatus kvaXmlGetValidationWarning(KvaXmlValidationStatus *status, char *buf, unsigned int len)
An undefined trigger is used in an expression.
Definition: kvamemolibxml.h:99
A trigger on disk full used with FIFO mode.
Definition: kvamemolibxml.h:115
int start_pos
Definition: kvamemolibxml.h:380
A trigger on disk full starts the logging.
Definition: kvamemolibxml.h:102
int end_pos
Definition: kvamemolibxml.h:381
KvaXmlStatus kvaXmlGetErrorText(KvaXmlStatus status, char *buf, unsigned int len)
Too many or too few elements of this type.
Definition: kvamemolibxml.h:108
KvaXmlStatus kvaXmlToFile(const char *infile, const char *outfile)
int errCode
Definition: kvamemolibxml.h:383
int kvaToolsFreeExpr(KvParseHandle *h, Token *t)
Handle used when parsing postfix expressions (deprecated):
Definition: kvamemolibxml.h:391
Generic error.
Definition: kvamemolibxml.h:69
OK.
Definition: kvamemolibxml.h:68
int type
Definition: kvamemolibxml.h:376
Failed to find an attribute in a node.
Definition: kvamemolibxml.h:70
KvaXmlStatus kvaXmlDebugOutput(int on)
No active logging detected.
Definition: kvamemolibxml.h:114
KvaXmlValidationStatus
Definition: kvamemolibxml.h:94
struct tag_token Token
Token used when parsing postfix expressions (deprecated):
Too many errors, validation aborted.
Definition: kvamemolibxml.h:97
Token used when parsing postfix expressions (deprecated):
Definition: kvamemolibxml.h:375
t-script related errors, e.g. file not found.
Definition: kvamemolibxml.h:79
The trigger expression could not be parsed.
Definition: kvamemolibxml.h:76
struct tag_token * right
Definition: kvamemolibxml.h:379
A numerical value is out of range.
Definition: kvamemolibxml.h:103
KvaXmlStatus kvaXmlGetValidationError(KvaXmlValidationStatus *status, char *buf, unsigned int len)
KvaXmlStatus
Definition: kvamemolibxml.h:67
KvaXmlStatus kvaXmlGetValidationStatusCount(int *countErr, int *countWarn)
Too many warnings, validation aborted.
Definition: kvamemolibxml.h:113
The values are not consecutive; usually idx attributes.
Definition: kvamemolibxml.h:75
The attribute value is not correct, e.g. whitespace after a number.
Definition: kvamemolibxml.h:71
KvaXmlStatus kvaXmlToBuffer(const char *xmlbuf, unsigned int xmllen, char *outbuf, unsigned int *outlen, long *version)
OK.
Definition: kvamemolibxml.h:95
A general trigger expression found during parsing.
Definition: kvamemolibxml.h:111
KvParseHandle * kvaToolsParseCreate(void)
A general t-script error found during parsing.
Definition: kvamemolibxml.h:110
This XML element was ignored.
Definition: kvamemolibxml.h:116
The value is outside the allowed range.
Definition: kvamemolibxml.h:73
A t-script file could not be opened.
Definition: kvamemolibxml.h:104
Generic error.
Definition: kvamemolibxml.h:96
int kvaToolsParseExpr(KvParseHandle *h, char *expr, Token **t)
KvaXmlStatus kvaXmlGetValidationText(KvaXmlValidationStatus status, char *buf, unsigned int len)
There are more than one external trigger defined.
Definition: kvamemolibxml.h:100
int kvaToolsExprGetError(KvParseHandle *h, Token *t, int *errCode, int *pos)
KvaXmlStatus kvaXmlGetLastError(char *buf, unsigned int len, KvaXmlStatus *err)
int kvaToolsDumpExpr(KvParseHandle *h, Token *t)
Token * next
Definition: kvamemolibxml.h:392
The value is not unique; usually idx attributes.
Definition: kvamemolibxml.h:74
KvaXmlStatus kvaXmlInitialize(void)
The XML settings do not follow the DTD.
Definition: kvamemolibxml.h:78
void kvaToolsExprGetErrorString(int errCode, char *s, size_t bufsiz)
The XML settings contain syntax errors.
Definition: kvamemolibxml.h:77
Could not find a required element.
Definition: kvamemolibxml.h:72
A t-script is too large for the configuration.
Definition: kvamemolibxml.h:105
struct tag_token * left
Definition: kvamemolibxml.h:378
void kvaToolsParseDestroy(KvParseHandle *h)
KvaXmlStatus kvaFileToXml(const char *parfile, const char *xmlfile)
KvaXmlStatus kvaXmlValidate(const char *xmlbuf, unsigned int xmllen)
Transmit lists used in silent mode.
Definition: kvamemolibxml.h:98
KvaXmlStatus kvaBufferToXml(const char *inbuf, unsigned int inlen, char *xmlbuf, unsigned int *xmllen, long *version, const char *scriptpath)
unsigned short kvaXmlGetVersion(void)