cpelang_priv.h
Go to the documentation of this file.
/*
* Copyright 2009 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Authors:
* Maros Barabas <mbarabas@redhat.com>
*/
#ifndef CPELANG_PRIV_H_
#define CPELANG_PRIV_H_
#include <libxml/xmlreader.h>
#include <libxml/xmlwriter.h>
#include "cpe_lang.h"
#include "../common/util.h"
#include "../common/list.h"
#include "../common/elements.h"
#include "../common/public/oscap.h"
OSCAP_HIDDEN_START;
/* @endcond */
struct cpe_testexpr {
cpe_lang_oper_t oper;
union {
struct oscap_list *expr;
struct cpe_name *cpe;
struct {
char* system;
char* href;
char* id;
} check;
} meta;
};
struct cpe_lang_model;
struct cpe_platform;
struct cpe_lang_model *cpe_lang_model_parse_xml(const char *file);
struct cpe_lang_model *cpe_lang_model_parse(xmlTextReaderPtr reader);
struct cpe_platform *cpe_platform_parse(xmlTextReaderPtr reader);
struct cpe_testexpr *cpe_testexpr_parse(xmlTextReaderPtr reader);
void cpe_lang_model_export_xml(const struct cpe_lang_model *spec, const char *file);
void cpe_lang_export(const struct cpe_lang_model *spec, xmlTextWriterPtr writer);
void cpe_platform_export(const struct cpe_platform *platform, xmlTextWriterPtr writer);
void cpe_testexpr_export(const struct cpe_testexpr *expr, xmlTextWriterPtr writer);
OSCAP_HIDDEN_END;
/* @endcond */
#endif