Greenbone Vulnerability Manager 22.5.2
gmp_tickets.h
1/* Copyright (C) 2018-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_TICKETS_H
20#define _GVMD_GMP_TICKETS_H
21
22#include "gmp_base.h"
23/* This is only needed for result_t, which ideally would come from a smaller
24 * include file. */
25#include "manage.h"
26
27void
28get_tickets_start (const gchar **, const gchar **);
29
30void
31get_tickets_run (gmp_parser_t *, GError **);
32
33void
34create_ticket_start (gmp_parser_t *, const gchar **, const gchar **);
35
36void
37create_ticket_element_start (gmp_parser_t *, const gchar *, const gchar **,
38 const gchar **);
39
40int
41create_ticket_element_end (gmp_parser_t *, GError **error, const gchar *);
42
43void
44create_ticket_element_text (const gchar *, gsize);
45
46void
47modify_ticket_start (gmp_parser_t *, const gchar **, const gchar **);
48
49void
50modify_ticket_element_start (gmp_parser_t *, const gchar *, const gchar **,
51 const gchar **);
52
53int
54modify_ticket_element_end (gmp_parser_t *, GError **error, const gchar *);
55
56void
57modify_ticket_element_text (const gchar *, gsize);
58
59int
60buffer_result_tickets_xml (GString *, result_t);
61
62#endif /* not _GVMD_GMP_TICKETS_H */
void create_ticket_element_start(gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values)
Start element.
Definition: gmp_tickets.c:369
void modify_ticket_element_start(gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values)
Start element.
Definition: gmp_tickets.c:659
void modify_ticket_element_text(const gchar *text, gsize text_len)
Add text to element.
Definition: gmp_tickets.c:835
int buffer_result_tickets_xml(GString *buffer, result_t result)
Buffer ticket XML for a result.
Definition: gmp_tickets.c:852
void create_ticket_element_text(const gchar *text, gsize text_len)
Add text to element.
Definition: gmp_tickets.c:594
void get_tickets_start(const gchar **attribute_names, const gchar **attribute_values)
Handle command start element.
Definition: gmp_tickets.c:78
void modify_ticket_start(gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values)
Start a command.
Definition: gmp_tickets.c:640
void create_ticket_start(gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values)
Start a command.
Definition: gmp_tickets.c:350
int modify_ticket_element_end(gmp_parser_t *gmp_parser, GError **error, const gchar *name)
End element.
Definition: gmp_tickets.c:816
int create_ticket_element_end(gmp_parser_t *gmp_parser, GError **error, const gchar *name)
End element.
Definition: gmp_tickets.c:575
void get_tickets_run(gmp_parser_t *gmp_parser, GError **error)
Handle end element.
Definition: gmp_tickets.c:93
A handle on a GMP parser.
Definition: gmp_base.h:28