diff options
author | David Sommerseth <davids@redhat.com> | 2009-10-07 17:27:39 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-10-07 17:27:39 +0200 |
commit | 2052cb39e628756c4d08c44876c9a9d4a399d58d (patch) | |
tree | 5b9892332446e19234c6d2ac6c897beb850f27b1 /server/parser/xmlparser.h | |
parent | 83cbf839335770b511a1d94a6fca9e210eab995f (diff) | |
download | rteval-2052cb39e628756c4d08c44876c9a9d4a399d58d.tar.gz rteval-2052cb39e628756c4d08c44876c9a9d4a399d58d.tar.xz rteval-2052cb39e628756c4d08c44876c9a9d4a399d58d.zip |
Added needed pieces to make the C based summary.xml parser work
Diffstat (limited to 'server/parser/xmlparser.h')
-rw-r--r-- | server/parser/xmlparser.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/server/parser/xmlparser.h b/server/parser/xmlparser.h new file mode 100644 index 0000000..fd58bdd --- /dev/null +++ b/server/parser/xmlparser.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2009 Red Hat Inc. + * + * David Sommerseth <davids@redhat.com> + * + * Parses summary.xml reports from rteval into a standardised XML format + * which is useful when putting data into a database. + * + * This application is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; version 2. + * + * This application is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + */ + +#ifndef _XMLPARSER_H +#define _XMLPARSER_H + +#define XSLTFILE "/usr/share/rteval/xmlparser.xsl" + +typedef struct { + char *table; + unsigned int syskey; + char *report_filename; + unsigned int rterid; +} parseParams; + +xmlDoc *parseToSQLdata(xsltStylesheet *xslt, xmlDoc *indata_d, parseParams *params); + +#endif |