diff options
author | David Sommerseth <davids@redhat.com> | 2009-12-08 14:36:02 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-12-08 14:36:02 +0100 |
commit | f3069aacf0c0e3682e4842033481abdf83fed6ce (patch) | |
tree | 95ace1f91f011a89ef525d9cbb280a87f73d7282 /server/parser/xmlparser.h | |
parent | 605fb465994df62ddd57faab1412d32a47edc386 (diff) | |
download | rteval-f3069aacf0c0e3682e4842033481abdf83fed6ce.tar.gz rteval-f3069aacf0c0e3682e4842033481abdf83fed6ce.tar.xz rteval-f3069aacf0c0e3682e4842033481abdf83fed6ce.zip |
Added function to extract and parse the new //sqldata/@schemaver attribute
This attribute defines which version of the SQL database schema which is needed
for the SQL data found in the <sqldata/> document. This is to avoid SQL failures
when inserting data which the database is not prepared for.
Diffstat (limited to 'server/parser/xmlparser.h')
-rw-r--r-- | server/parser/xmlparser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/parser/xmlparser.h b/server/parser/xmlparser.h index 2c96fdf..f903037 100644 --- a/server/parser/xmlparser.h +++ b/server/parser/xmlparser.h @@ -45,4 +45,5 @@ int sqldataGetFid(LogContext *log, xmlNode *sqld, const char *fname); char *sqldataGetValue(LogContext *log, xmlDoc *sqld, const char *fname, int recid); xmlDoc *sqldataGetHostInfo(LogContext *log, xsltStylesheet *xslt, xmlDoc *summaryxml, int syskey, char **hostname, char **ipaddr); +int sqldataGetRequiredSchemaVer(LogContext *log, xmlNode *sqldata_root); #endif |