CPE platform specification. More...
#include <cpelang_priv.h>
Public Member Functions | |
struct cpe_lang_model * | cpe_lang_model_new (void) |
Constructor of CPE Language model. | |
void | cpe_lang_model_free (struct cpe_lang_model *platformspec) |
Free function of CPE test expression. | |
struct cpe_lang_model * | cpe_lang_model_import (const char *file) |
Load CPE language model from a XML document. | |
void | cpe_lang_model_export (const struct cpe_lang_model *spec, const char *file) |
Write the lang_model to a file. | |
Getters | |
struct cpe_platform_iterator * | cpe_lang_model_get_platforms (const struct cpe_lang_model *item) |
cpe_lang_model function to get CPE platforms | |
struct cpe_platform * | cpe_lang_model_get_item (const struct cpe_lang_model *item, const char *key) |
cpe_lang_model function to get CPE platforms | |
Setters | |
bool | cpe_lang_model_add_platform (struct cpe_lang_model *lang, struct cpe_platform *platform) |
Add platform to CPE lang model. | |
Evaluators | |
const char * | cpe_lang_model_supported (void) |
Get supported version of CPE language XML. | |
Data Fields | |
struct oscap_list * | platforms |
struct oscap_htable * | item |
CPE platform specification.