11#ifndef _GVM_CPEUTILS_H
12#define _GVM_CPEUTILS_H
94#define CPE_COMPONENT_IS_ANY(component) (component[0] == 'A')
void cpe_struct_init(cpe_struct_t *)
Initialize a CPE struct.
void fs_cpe_to_cpe_struct(const char *, cpe_struct_t *)
Read a formatted string CPE into the CPE struct.
char * cpe_struct_to_uri_cpe(const cpe_struct_t *)
Convert a CPE struct into a URI CPE.
void uri_cpe_to_cpe_struct(const char *, cpe_struct_t *)
Read a URI CPE into the CPE struct.
char * cpe_struct_to_fs_product(const cpe_struct_t *)
Convert a CPE struct into a formatted string product.
gboolean cpe_struct_match_tail(cpe_struct_t *, cpe_struct_t *)
Returns if the part behind the version of source is a match for that part of target....
char * get_version_from_uri_cpe(const char *)
Get the version from an uri cpe.
char * fs_cpe_to_uri_product(const char *)
Convert a formatted string CPE to an URI product.
void cpe_struct_free(cpe_struct_t *)
Free a CPE struct.
char * uri_cpe_to_uri_product(const char *)
Convert a URI CPE to a formatted string product.
char * cpe_struct_to_uri_product(const cpe_struct_t *)
Convert a CPE struct into a URI product.
char * fs_cpe_to_uri_cpe(const char *)
Convert a formatted string CPE to a URI CPE.
char * uri_cpe_to_fs_product(const char *)
Convert a URI CPE to a formatted string product.
char * cpe_struct_to_fs_cpe(const cpe_struct_t *)
Convert a CPE struct into a formatted string CPE.
gboolean cpe_struct_match(cpe_struct_t *, cpe_struct_t *)
Returns if source is a match for target. That means that source is a superset of target.
char * uri_cpe_to_fs_cpe(const char *)
Convert a URI CPE to a formatted string CPE.