Greenbone Vulnerability Manager 22.5.2
gmp_port_lists.h
1/* Copyright (C) 2020-2022 Greenbone AG
2 *
3 * SPDX-License-Identifier: AGPL-3.0-or-later
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef _GVMD_GMP_PORT_LISTS_H
20#define _GVMD_GMP_PORT_LISTS_H
21
22#include "gmp_base.h"
23
24#include <gvm/base/array.h>
25#include <gvm/util/xmlutils.h>
26
27void
28create_port_list_start (gmp_parser_t *, const gchar **, const gchar **);
29
30void
31create_port_list_element_start (gmp_parser_t *, const gchar *, const gchar **,
32 const gchar **);
33
34int
35create_port_list_element_end (gmp_parser_t *, GError **error, const gchar *);
36
37void
38create_port_list_element_text (const gchar *, gsize);
39
40void
41parse_port_list_entity (entity_t, const char **, char **, char **, array_t **);
42
43#endif /* not _GVMD_GMP_PORT_LISTS_H */
void create_port_list_element_text(const gchar *text, gsize text_len)
Add text to element.
Definition: gmp_port_lists.c:443
void create_port_list_element_start(gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values)
Start element.
Definition: gmp_port_lists.c:96
void create_port_list_start(gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values)
Start a command.
Definition: gmp_port_lists.c:77
int create_port_list_element_end(gmp_parser_t *gmp_parser, GError **error, const gchar *name)
End element.
Definition: gmp_port_lists.c:424
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.
Definition: gmp_port_lists.c:114
A handle on a GMP parser.
Definition: gmp_base.h:28