Open SCAP Library: oval_string_map_impl.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

oval_string_map_impl.h
Go to the documentation of this file.
1
8 /*
9 * Copyright 2009--2013 Red Hat Inc., Durham, North Carolina.
10 * All Rights Reserved.
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library 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 GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Authors:
27 * "David Niemoller" <David.Niemoller@g2-inc.com>
28 */
29
30 #ifndef OVAL_STRING_MAP_IMPL_H_
31 #define OVAL_STRING_MAP_IMPL_H_
32
33 #include "oval_collection_impl.h"
34 #include "../common/util.h"
35
36 OSCAP_HIDDEN_START;
37
38 struct oval_string_map_s;
39
40 struct oval_string_map *oval_string_map_new(void);
41 void oval_string_map_put(struct oval_string_map *, const char *, void *);
42
43 void oval_string_map_put_string(struct oval_string_map *, const char *, const char *);
44 struct oval_iterator *oval_string_map_keys(struct oval_string_map *);
45 struct oval_iterator *oval_string_map_values(struct oval_string_map *);
46 void *oval_string_map_get_value(struct oval_string_map *, const char *);
47 void oval_string_map_free(struct oval_string_map *, oscap_destruct_func);
48 void oval_string_map_free0(struct oval_string_map *);
49 void oval_string_map_free_string(struct oval_string_map *);
50 struct oval_collection *oval_string_map_collect_values(struct oval_string_map *map, struct oval_collection *collection);
51
52 OSCAP_HIDDEN_END;
53
54 #endif /* OVAL_STRING_MAP_IMPL_H_ */