OpenVAS Libraries
7.0.9
Main Page
Related Pages
Data Structures
Files
File List
Globals
base
settings.h
Go to the documentation of this file.
1
/* openvas-libraries/base
2
* $Id$
3
* Description: API (structs and protos) for configuration file management
4
*
5
* Authors:
6
* Matthew Mundell <matthew.mundell@intevation.de>
7
* Michael Wiegand <michael.wiegand@intevation.de>
8
*
9
* Copyright:
10
* Copyright (C) 2010 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
34
#ifndef _OPENVAS_LIBRARIES_BASE_SETTINGS_H
35
#define _OPENVAS_LIBRARIES_BASE_SETTINGS_H
36
37
#include <glib.h>
38
39
typedef
struct
40
{
41
gchar *
file_name
;
42
gchar *
group_name
;
43
GKeyFile *
key_file
;
44
}
settings_t
;
45
46
void
settings_cleanup
(
settings_t
*);
47
48
typedef
struct
49
{
50
gchar **
keys
;
51
settings_t
settings
;
52
gchar **
current_key
;
53
gchar **
last_key
;
54
}
settings_iterator_t
;
55
56
int
init_settings_iterator_from_file
(
settings_iterator_t
*,
const
gchar *,
57
const
gchar *);
58
void
cleanup_settings_iterator
(
settings_iterator_t
*);
59
int
settings_iterator_next
(
settings_iterator_t
*);
60
const
gchar *
settings_iterator_name
(
settings_iterator_t
*);
61
const
gchar *
settings_iterator_value
(
settings_iterator_t
*);
62
63
#endif
/* not _OPENVAS_LIBRARIES_BASE_SETTINGS_H */
Generated by
1.8.3.1