Greenbone Vulnerability Manager
22.4.0~dev1
|
GVM GMP layer: Report Formats. More...
#include "gmp_report_formats.h"
#include "gmp_base.h"
#include "gmp_get.h"
#include "manage_report_formats.h"
#include "utils.h"
#include <stdlib.h>
#include <string.h>
#include <strings.h>
Data Structures | |
struct | create_report_format_t |
The create_report_format command. More... | |
Functions | |
static void | create_report_format_reset () |
Reset command data. | |
void | create_report_format_start (gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values) |
Start a command. More... | |
void | create_report_format_element_start (gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values) |
Start element. More... | |
static char * | child_or_null (entity_t entity, const gchar *name) |
Return text of child if child exists, else NULL. More... | |
void | params_options_free (array_t *params_options) |
Free a "params_options". More... | |
void | parse_report_format_entity (entity_t report_format, const char **report_format_id, char **name, char **content_type, char **extension, char **summary, char **description, char **signature, array_t **files, array_t **params, array_t **params_options) |
Get creation data from a report_format entity. More... | |
void | create_report_format_run (gmp_parser_t *gmp_parser, GError **error) |
Execute command. More... | |
int | create_report_format_element_end (gmp_parser_t *gmp_parser, GError **error, const gchar *name) |
End element. More... | |
void | create_report_format_element_text (const gchar *text, gsize text_len) |
Add text to element. More... | |
Variables | |
static create_report_format_t | create_report_format_data |
Parser callback data. More... | |
GVM GMP layer: Report Formats.
GMP report formats.
|
static |
Return text of child if child exists, else NULL.
[in] | entity | Entity. |
[in] | name | Name of child. |
int create_report_format_element_end | ( | gmp_parser_t * | gmp_parser, |
GError ** | error, | ||
const gchar * | name | ||
) |
End element.
[in] | gmp_parser | GMP parser. |
[in] | error | Error parameter. |
[in] | name | Element name. |
void create_report_format_element_start | ( | gmp_parser_t * | gmp_parser, |
const gchar * | name, | ||
const gchar ** | attribute_names, | ||
const gchar ** | attribute_values | ||
) |
Start element.
[in] | gmp_parser | GMP parser. |
[in] | name | Element name. |
[in] | attribute_names | All attribute names. |
[in] | attribute_values | All attribute values. |
void create_report_format_element_text | ( | const gchar * | text, |
gsize | text_len | ||
) |
Add text to element.
[in] | text | Text. |
[in] | text_len | Text length. |
void create_report_format_run | ( | gmp_parser_t * | gmp_parser, |
GError ** | error | ||
) |
Execute command.
[in] | gmp_parser | GMP parser. |
[in] | error | Error parameter. |
void create_report_format_start | ( | gmp_parser_t * | gmp_parser, |
const gchar ** | attribute_names, | ||
const gchar ** | attribute_values | ||
) |
Start a command.
[in] | gmp_parser | GMP parser. |
[in] | attribute_names | All attribute names. |
[in] | attribute_values | All attribute values. |
void params_options_free | ( | array_t * | params_options | ) |
Free a "params_options".
[in] | params_options | Param options. |
void parse_report_format_entity | ( | entity_t | report_format, |
const char ** | report_format_id, | ||
char ** | name, | ||
char ** | content_type, | ||
char ** | extension, | ||
char ** | summary, | ||
char ** | description, | ||
char ** | signature, | ||
array_t ** | files, | ||
array_t ** | params, | ||
array_t ** | params_options | ||
) |
Get creation data from a report_format entity.
[in] | report_format | Report format entity. |
[out] | report_format_id | Address for report format ID if required, else NULL. |
[out] | name | Address for name. |
[out] | content_type | Address for content type. |
[out] | extension | Address for extension. |
[out] | summary | Address for summary. |
[out] | description | Address for description. |
[out] | signature | Address for signature. |
[out] | files | Address for files. |
[out] | params | Address for params. |
[out] | params_options | Address for param options. |
|
static |
Parser callback data.
This is initially 0 because it's a global variable.