summaryrefslogtreecommitdiffstats
path: root/server/parser/xmlparser.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2011-10-07 14:22:03 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-07 18:11:06 +0200
commit5ce546f047f30d40b52ac647a5012a7f09b7e30d (patch)
treec3672c9fc64cf8d8a9fc21c7a32190560573cd04 /server/parser/xmlparser.h
parenta5e7518839e3054cfb05c9b12094c5a27b199e56 (diff)
downloadrteval-5ce546f047f30d40b52ac647a5012a7f09b7e30d.tar.gz
rteval-5ce546f047f30d40b52ac647a5012a7f09b7e30d.tar.xz
rteval-5ce546f047f30d40b52ac647a5012a7f09b7e30d.zip
Introduce init_xmlparser() process
This is the first step towards moving PostgreSQL specific parts out of xmlparser.c to make the xmlparser database backend agnostic. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'server/parser/xmlparser.h')
-rw-r--r--server/parser/xmlparser.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/parser/xmlparser.h b/server/parser/xmlparser.h
index f903037..f2ce057 100644
--- a/server/parser/xmlparser.h
+++ b/server/parser/xmlparser.h
@@ -39,6 +39,15 @@ typedef struct {
unsigned int rterid; /**< References rtevalruns.rterid */
} parseParams;
+
+/**
+ * Database specific helper functions
+ */
+typedef struct {
+ const char *(*dbh_FormatArray)(LogContext *log, xmlNode *sql_n); /** Formats data as arrays */
+} dbhelper_func;
+
+void init_xmlparser(dbhelper_func const * dbhelpers);
xmlDoc *parseToSQLdata(LogContext *log, xsltStylesheet *xslt, xmlDoc *indata_d, parseParams *params);
char *sqldataExtractContent(LogContext *log, xmlNode *sql_n);
int sqldataGetFid(LogContext *log, xmlNode *sqld, const char *fname);