Greenbone Vulnerability Manager  22.4.0~dev1
gmp_report_formats.h
1 /* Copyright (C) 2020-2022 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_REPORT_FORMATS_H
20 #define _GVMD_GMP_REPORT_FORMATS_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_report_format_start (gmp_parser_t *, const gchar **, const gchar **);
29 
30 void
31 create_report_format_element_start (gmp_parser_t *, const gchar *, const gchar **,
32  const gchar **);
33 
34 int
35 create_report_format_element_end (gmp_parser_t *, GError **error, const gchar *);
36 
37 void
38 create_report_format_element_text (const gchar *, gsize);
39 
40 void
41 params_options_free (array_t *);
42 
43 void
44 parse_report_format_entity (entity_t, const char **, char **, char **,
45  char **, char **, char **, char **,
46  array_t **, array_t **, array_t **);
47 
48 #endif /* not _GVMD_GMP_REPORT_FORMATS_H */
void create_report_format_start(gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values)
Start a command.
Definition: gmp_report_formats.c:77
int create_report_format_element_end(gmp_parser_t *gmp_parser, GError **error, const gchar *name)
End element.
Definition: gmp_report_formats.c:530
void create_report_format_element_start(gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values)
Start element.
Definition: gmp_report_formats.c:96
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.
Definition: gmp_report_formats.c:161
void params_options_free(array_t *params_options)
Free a "params_options".
Definition: gmp_report_formats.c:129
void create_report_format_element_text(const gchar *text, gsize text_len)
Add text to element.
Definition: gmp_report_formats.c:549
A handle on a GMP parser.
Definition: gmp_base.h:28