Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Data Fields
cpe_dict_model Struct Reference

Structure representing a CPE dictionary. More...

#include <cpe_dict.h>

Public Member Functions

OSCAP_API void cpe_dict_model_free (struct cpe_dict_model *dict)
 
OSCAP_API struct cpe_dict_modelcpe_dict_model_new (void)
 
OSCAP_API void cpe_dict_model_export (const struct cpe_dict_model *dict, const char *file)
 Write the dict_model to a file. More...
 
OSCAP_API struct cpe_dict_modelcpe_dict_model_import_source (struct oscap_source *source)
 Load new CPE dictionary from an oscap_source. More...
 
Getters

Return value is pointer to structure's member.

Do not free unless you null the pointer in the structure. Use remove function otherwise.

OSCAP_API int cpe_dict_model_get_base_version (const struct cpe_dict_model *item)
 cpe_dict_model functions to get the base version from CPE dictionary model More...
 
OSCAP_API bool cpe_dict_model_set_base_version (struct cpe_dict_model *item, int base_version)
 cpe_dict_model functions to get the base version from CPE dictionary model More...
 
OSCAP_API struct
cpe_item_iterator
cpe_dict_model_get_items (const struct cpe_dict_model *item)
 cpe_dict_model functions to get CPE items More...
 
OSCAP_API struct
cpe_vendor_iterator
cpe_dict_model_get_vendors (const struct cpe_dict_model *item)
 cpe_dict_model functions to get vendors More...
 
Setters

For lists use add functions.

Parameters of set functions are duplicated in memory and need to be freed by caller.

OSCAP_API bool cpe_dict_model_add_item (struct cpe_dict_model *dict, struct cpe_item *new_item)
 
OSCAP_API bool cpe_dict_model_add_vendor (struct cpe_dict_model *dict, struct cpe_vendor *new_vendor)
 
Evaluators
OSCAP_API const char * cpe_dict_model_supported (void)
 Get the newest supported version of CPE dictionary XML. More...
 
OSCAP_API bool cpe_name_match_dict (struct cpe_name *cpe, struct cpe_dict_model *dict)
 Verify wether given CPE is known according to specified dictionary. More...
 
OSCAP_API bool cpe_name_applicable_dict (struct cpe_name *cpe, struct cpe_dict_model *dict, cpe_check_fn cb, void *usr)
 Verify whether given CPE is applicable to current platform by evaluating checks associated with it. More...
 

Data Fields

struct oscap_listitems
 
struct oscap_listvendors
 
int base_version
 
struct cpe_generatorgenerator
 
char * origin_file
 

Detailed Description

Structure representing a CPE dictionary.


The documentation for this struct was generated from the following files: