30#ifndef CPELANG_PRIV_H_
31#define CPELANG_PRIV_H_
33#include <libxml/xmlreader.h>
34#include <libxml/xmlwriter.h>
37#include "../common/util.h"
38#include "../common/list.h"
124char *cpe_lang_model_detect_version_priv(xmlTextReader *reader);
Interface to Common Platform Enumeration (CPE) Language.
struct cpe_testexpr * cpe_testexpr_parse(xmlTextReaderPtr reader)
Parse CPE test expression structure.
Definition cpelang_priv.c:312
void cpe_platform_export(const struct cpe_platform *platform, xmlTextWriterPtr writer)
Function for export CPE platform element.
Definition cpelang_priv.c:503
void cpe_testexpr_export(const struct cpe_testexpr *expr, xmlTextWriterPtr writer)
Function for export CPE test expression element.
Definition cpelang_priv.c:519
struct cpe_platform * cpe_platform_parse(xmlTextReaderPtr reader)
Parse CPE platform structure.
Definition cpelang_priv.c:265
void cpe_lang_export(const struct cpe_lang_model *spec, xmlTextWriterPtr writer)
Function for export CPE language top element.
Definition cpelang_priv.c:488
const char * cpe_lang_model_get_origin_file(const struct cpe_lang_model *lang_model)
Gets the file the CPE dict model was loaded from This is necessary to figure out the full OVAL file p...
Definition cpelang_priv.c:760
bool cpe_lang_model_set_origin_file(struct cpe_lang_model *lang_model, const char *origin_file)
Sets the origin file hint.
Definition cpelang_priv.c:752
struct cpe_lang_model * cpe_lang_model_parse(xmlTextReaderPtr reader)
Parse function for CPE Lang model.
Definition cpelang_priv.c:235
void cpe_lang_model_export_xml(const struct cpe_lang_model *spec, const char *file)
Function for export CPE language model to XML.
Definition cpelang_priv.c:461
cpe_lang_oper_t
CPE language operators.
Definition cpe_lang.h:50
General OpenScap functions and types.
CPE platform specification.
Definition cpelang_priv.c:63
Structure holding Common Platform Enumeration URI data.
Definition cpename.c:70
CPE language boolean expression.
Definition cpelang_priv.h:51
union cpe_testexpr::@1 meta
operation metadata
cpe_lang_oper_t oper
operator
Definition cpelang_priv.h:52
struct oscap_list * expr
array of subexpressions for operators
Definition cpelang_priv.h:54
struct cpe_name * cpe
CPE for match operation.
Definition cpelang_priv.h:55