CPE Dictionary
[CPE]


Data Structures

struct  cpe_dict_check
 single check struct More...
struct  cpe_dict_reference
 dictionary item reference More...
struct  cpe_dict_item
 structure representing single CPE dictionary item More...
struct  cpe_dict
 Structure representing CPE dictionary. More...

Files

file  cpedict.h
 Interface to Common Product Enumeration (CPE) Dictionary.

Typedefs

typedef struct cpe_dict_check cpe_dict_check_t
 single check struct
typedef struct cpe_dict_reference cpe_dict_reference_t
 dictionary item reference
typedef struct cpe_dict_item cpe_dict_item_t
 structure representing single CPE dictionary item
typedef struct cpe_dict cpe_dict_t
 Structure representing CPE dictionary.

Functions

cpe_dict_tcpe_dict_new (const char *fname)
 Load new CPE dictionary from file.
cpe_dict_tcpe_dict_new_empty ()
 Create new empty CPE dictionary.
bool cpe_dict_add_item (cpe_dict_t *dict, cpe_dict_item_t *item)
 Add item to dictionary dict.
void cpe_dict_delete (cpe_dict_t *dict)
 Frees CPE dictionary and its contents.
cpe_dict_item_tcpe_dictitem_new_empty ()
 Create new empty dictionary item.
void cpe_dictitem_delete (cpe_dict_item_t *item)
 Free dictionary item.
void cpe_dictcheck_delete (cpe_dict_check_t *check)

Function Documentation

bool cpe_dict_add_item ( cpe_dict_t dict,
cpe_dict_item_t item 
)

Add item to dictionary dict.

Note:
item will be deleted as soon as you call cpe_dict_delete on dictionary.
Parameters:
dict dictionary to add new item to
item pointer to item to add
Returns:
true on success

void cpe_dict_delete ( cpe_dict_t dict  ) 

Frees CPE dictionary and its contents.

Parameters:
dict dictionary to be deleted

cpe_dict_t* cpe_dict_new ( const char *  fname  ) 

Load new CPE dictionary from file.

Parameters:
fname file name of dictionary to load
Returns:
new dictionary
Return values:
NULL on failure

cpe_dict_t* cpe_dict_new_empty (  ) 

Create new empty CPE dictionary.

Returns:
new dictionary
Return values:
NULL on failure

void cpe_dictitem_delete ( cpe_dict_item_t item  ) 

Free dictionary item.

Parameters:
item item to be deleted

cpe_dict_item_t* cpe_dictitem_new_empty (  ) 

Create new empty dictionary item.

Returns:
new dictionary item
Return values:
NULL on failure


Generated on Thu Apr 30 13:45:39 2009 for Open SCAP Library by  doxygen 1.5.7.1