Greenbone Vulnerability Manager  9.0.1
gmp_tickets.h
1 /* GVM
2  * $Id$
3  * Description: GVM GMP layer: Tickets headers.
4  *
5  * Authors:
6  * Matthew Mundell <matthew.mundell@greenbone.net>
7  *
8  * Copyright:
9  * Copyright (C) 2018 Greenbone Networks GmbH
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25 
26 #ifndef _GVMD_GMP_TICKETS_H
27 #define _GVMD_GMP_TICKETS_H
28 
29 #include "gmp_base.h"
30 #include "manage.h"
31 
32 void
33 get_tickets_start (const gchar **, const gchar **);
34 
35 void
36 get_tickets_run (gmp_parser_t *, GError **);
37 
38 void
39 create_ticket_start (gmp_parser_t *, const gchar **, const gchar **);
40 
41 void
42 create_ticket_element_start (gmp_parser_t *, const gchar *, const gchar **,
43  const gchar **);
44 
45 int
46 create_ticket_element_end (gmp_parser_t *, GError **error, const gchar *);
47 
48 void
49 create_ticket_element_text (const gchar *, gsize);
50 
51 void
52 modify_ticket_start (gmp_parser_t *, const gchar **, const gchar **);
53 
54 void
55 modify_ticket_element_start (gmp_parser_t *, const gchar *, const gchar **,
56  const gchar **);
57 
58 int
59 modify_ticket_element_end (gmp_parser_t *, GError **error, const gchar *);
60 
61 void
62 modify_ticket_element_text (const gchar *, gsize);
63 
64 int
65 buffer_result_tickets_xml (GString *, result_t);
66 
67 #endif /* not _GVMD_GMP_TICKETS_H */
modify_ticket_start
void modify_ticket_start(gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values)
Start a command.
Definition: gmp_tickets.c:641
create_ticket_element_text
void create_ticket_element_text(const gchar *text, gsize text_len)
Add text to element.
Definition: gmp_tickets.c:595
create_ticket_start
void create_ticket_start(gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values)
Start a command.
Definition: gmp_tickets.c:357
get_tickets_run
void get_tickets_run(gmp_parser_t *gmp_parser, GError **error)
Handle end element.
Definition: gmp_tickets.c:100
modify_ticket_element_start
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:660
gmp_parser_t
A handle on a GMP parser.
Definition: gmp_base.h:34
modify_ticket_element_end
int modify_ticket_element_end(gmp_parser_t *gmp_parser, GError **error, const gchar *name)
End element.
Definition: gmp_tickets.c:817
modify_ticket_element_text
void modify_ticket_element_text(const gchar *text, gsize text_len)
Add text to element.
Definition: gmp_tickets.c:836
buffer_result_tickets_xml
int buffer_result_tickets_xml(GString *buffer, result_t result)
Buffer ticket XML for a result.
Definition: gmp_tickets.c:853
create_ticket_element_end
int create_ticket_element_end(gmp_parser_t *gmp_parser, GError **error, const gchar *name)
End element.
Definition: gmp_tickets.c:576
create_ticket_element_start
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:376
get_tickets_start
void get_tickets_start(const gchar **attribute_names, const gchar **attribute_values)
Handle command start element.
Definition: gmp_tickets.c:85