|
Greenbone Vulnerability Manager 22.5.2
|
GVM GMP layer: Port Lists. More...
#include "gmp_port_lists.h"#include "gmp_base.h"#include "gmp_get.h"#include "manage_port_lists.h"#include "utils.h"#include <stdlib.h>#include <string.h>#include <strings.h>Data Structures | |
| struct | create_port_list_t |
| The create_port_list command. More... | |
Functions | |
| static void | create_port_list_reset () |
| Reset command data. | |
| void | create_port_list_start (gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values) |
| Start a command. More... | |
| void | create_port_list_element_start (gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values) |
| Start element. More... | |
| void | parse_port_list_entity (entity_t port_list, const char **port_list_id, char **name, char **comment, array_t **ranges) |
| Get creation data from a port_list entity. More... | |
| void | create_port_list_run (gmp_parser_t *gmp_parser, GError **error) |
| Execute command. More... | |
| int | create_port_list_element_end (gmp_parser_t *gmp_parser, GError **error, const gchar *name) |
| End element. More... | |
| void | create_port_list_element_text (const gchar *text, gsize text_len) |
| Add text to element. More... | |
Variables | |
| static create_port_list_t | create_port_list_data |
| Parser callback data. More... | |
GVM GMP layer: Port Lists.
GMP port lists.
| int create_port_list_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_port_list_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_port_list_element_text | ( | const gchar * | text, |
| gsize | text_len | ||
| ) |
Add text to element.
| [in] | text | Text. |
| [in] | text_len | Text length. |
| void create_port_list_run | ( | gmp_parser_t * | gmp_parser, |
| GError ** | error | ||
| ) |
Execute command.
| [in] | gmp_parser | GMP parser. |
| [in] | error | Error parameter. |
| void create_port_list_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 parse_port_list_entity | ( | entity_t | port_list, |
| const char ** | port_list_id, | ||
| char ** | name, | ||
| char ** | comment, | ||
| array_t ** | ranges | ||
| ) |
Get creation data from a port_list entity.
| [in] | port_list | Port list entity. |
| [out] | port_list_id | Address for port list ID if required, else NULL. |
| [out] | name | Address for name. |
| [out] | comment | Address for comment. |
| [out] | ranges | Address for port ranges. |
|
static |
Parser callback data.
This is initially 0 because it's a global variable.