Greenbone Vulnerability Manager  22.4.0~dev1
gmp_license.h
1 /* Copyright (C) 2021-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 #include "gmp_base.h"
20 
21 #include <glib.h>
22 #include <gvm/util/xmlutils.h>
23 
24 
32 /* GET_LICENSE. */
33 
34 void
36  const gchar **,
37  const gchar **);
38 
39 void
41  const gchar *,
42  const gchar **,
43  const gchar **);
44 
45 int
47  GError **,
48  const gchar *);
49 
50 void
51 get_license_element_text (const gchar *,
52  gsize);
53 
54 
55 /* MODIFY_LICENSE. */
56 
57 void
59  const gchar **,
60  const gchar **);
61 
62 void
64  const gchar *,
65  const gchar **,
66  const gchar **);
67 
68 int
70  GError **,
71  const gchar *);
72 
73 void
74 modify_license_element_text (const gchar *,
75  gsize);
int get_license_element_end(gmp_parser_t *gmp_parser, GError **error, const gchar *name)
End element.
Definition: gmp_license.c:266
void get_license_element_start(gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values)
Start element.
Definition: gmp_license.c:96
void modify_license_element_text(const gchar *text, gsize text_len)
Add text to element.
Definition: gmp_license.c:495
void modify_license_element_start(gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values)
Start element.
Definition: gmp_license.c:352
void get_license_element_text(const gchar *text, gsize text_len)
Add text to element.
Definition: gmp_license.c:286
void modify_license_start(gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values)
Start a command.
Definition: gmp_license.c:333
void get_license_start(gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values)
Start a command.
Definition: gmp_license.c:77
int modify_license_element_end(gmp_parser_t *gmp_parser, GError **error, const gchar *name)
End element.
Definition: gmp_license.c:475
A handle on a GMP parser.
Definition: gmp_base.h:28