Go to the documentation of this file.
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"
39 #include "../common/elements.h"
40 #include "../common/public/oscap.h"
124 char *cpe_lang_model_detect_version_priv(xmlTextReader *reader);
void cpe_lang_export(const struct cpe_lang_model *spec, xmlTextWriterPtr writer)
Function for export CPE language top element.
Definition: cpelang_priv.c:492
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:465
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:756
struct cpe_testexpr * cpe_testexpr_parse(xmlTextReaderPtr reader)
Parse CPE test expression structure.
Definition: cpelang_priv.c:312
struct oscap_list * expr
array of subexpressions for operators
Definition: cpelang_priv.h:54
union cpe_testexpr::@1 meta
operation metadata
struct cpe_lang_model * cpe_lang_model_parse(xmlTextReaderPtr reader)
Parse function for CPE Lang model.
Definition: cpelang_priv.c:235
struct cpe_platform * cpe_platform_parse(xmlTextReaderPtr reader)
Parse CPE platform structure.
Definition: cpelang_priv.c:265
cpe_lang_oper_t
CPE language operators.
Definition: cpe_lang.h:50
struct cpe_name * cpe
CPE for match operation.
Definition: cpelang_priv.h:55
cpe_lang_oper_t oper
operator
Definition: cpelang_priv.h:52
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:764
void cpe_platform_export(const struct cpe_platform *platform, xmlTextWriterPtr writer)
Function for export CPE platform element.
Definition: cpelang_priv.c:507
Definition: cpelang_priv.c:63
void cpe_testexpr_export(const struct cpe_testexpr *expr, xmlTextWriterPtr writer)
Function for export CPE test expression element.
Definition: cpelang_priv.c:523
Definition: cpelang_priv.h:51
Interface to Common Platform Enumeration (CPE) Language.