OpenVAS Libraries  7.0.7
openvas_string.h
Go to the documentation of this file.
1 /* openvas-libraries/base
2  * $Id$
3  * Description: String utilities.
4  *
5  * Authors:
6  * Matthew Mundell <matt@mundell.ukfsn.org>
7  * Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
8  *
9  * Copyright:
10  * Copyright (C) 2009 Greenbone Networks GmbH
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License version 2,
14  * or, at your option, any later version as published by the Free
15  * Software Foundation
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
25  */
26 
27 #ifndef _OPENVAS_LIBRARIES_STRING_H
28 #define _OPENVAS_LIBRARIES_STRING_H
29 
30 #include <glib.h>
31 
32 typedef gchar *string;
33 
34 void openvas_append_string (string *, const gchar *);
35 void openvas_append_text (string *, const gchar *, gsize);
36 void openvas_free_string_var (string *);
37 
38 char *openvas_strip_space (char *, char *);
39 
40 gchar* openvas_string_flatten_string_list (GSList* string_list,
41  const gchar* separator);
42 
43 void openvas_string_list_free (GSList* string_list);
44 
45 #endif /* not _OPENVAS_LIBRARIES_STRING_H */