1 /* Copyright (C) 2020 Greenbone Networks GmbH
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 
27 void
28 create_port_list_start (gmp_parser_t *, const gchar **, const gchar **);
29 
30 void
31 create_port_list_element_start (gmp_parser_t *, const gchar *, const gchar **,
32                                 const gchar **);
33 
34 int
35 create_port_list_element_end (gmp_parser_t *, GError **error, const gchar *);
36 
37 void
38 create_port_list_element_text (const gchar *, gsize);
39 
40 void
41 parse_port_list_entity (entity_t, const char **, char **, char **, array_t **);
42 
43 #endif /* not _GVMD_GMP_PORT_LISTS_H */
44