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

Detailed Description

Single platform representation in CPE language.

#include <cpelang_priv.h>

Public Member Functions

struct cpe_platformcpe_platform_new (void)
 Constructor of CPE Platform.
 
void cpe_platform_free (struct cpe_platform *platform)
 Free function of CPE Platform.
 
Getters

Return value is pointer to structure's member.

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

const char * cpe_platform_get_id (const struct cpe_platform *item)
 cpe_platform functions to get id
 
const char * cpe_platform_get_remark (const struct cpe_platform *item)
 cpe_platform functions to get remark
 
struct oscap_text_iteratorcpe_platform_get_titles (const struct cpe_platform *item)
 cpe_platform functions to get titles
 
struct cpe_testexprcpe_platform_get_expr (const struct cpe_platform *item)
 cpe_platform functions to get test expression
 
Setters

For lists use add functions.

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

bool cpe_platform_add_title (struct cpe_platform *platform, struct oscap_text *title)
 Add title to platform.
 
bool cpe_platform_set_id (struct cpe_platform *platform, const char *new_id)
 Set ID of CPE platform.
 
bool cpe_platform_set_remark (struct cpe_platform *platform, const char *new_remark)
 Set remark of CPE platform.
 
bool cpe_platform_set_expr (struct cpe_platform *platform, struct cpe_testexpr *expr)
 Set evaluation expression for this CPE platform. More...
 
Evaluators
bool cpe_platform_match_cpe (struct cpe_name **cpe, size_t n, const struct cpe_platform *platform)
 Function to match cpe in platform. More...
 

Data Fields

struct oscap_listtitles
 
char * id
 
char * remark
 
struct cpe_testexprexpr
 

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