Debian Codegraph @

src/OVAL/adt/oval_string_map_impl.h

raw symbols SCIP
1 /**
2 * @file oval_string_map_impl.h
3 * \brief Open Vulnerability and Assessment Language
4 *
5 * See more details at http://oval.mitre.org/
6 */
7
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 *
26 * Authors:
27 * "David Niemoller" <[email protected]>
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
37 struct oval_string_map;
38
39 struct oval_string_map *oval_string_map_new(void);
40 void oval_string_map_put(struct oval_string_map *, const char *, void *);
41
42 void oval_string_map_put_string(struct oval_string_map *, const char *, const char *);
43 struct oval_iterator *oval_string_map_keys(struct oval_string_map *);
44 struct oval_iterator *oval_string_map_values(struct oval_string_map *);
45 void *oval_string_map_get_value(struct oval_string_map *, const char *);
46 void oval_string_map_free(struct oval_string_map *, oscap_destruct_func);
47 void oval_string_map_free0(struct oval_string_map *);
48 void oval_string_map_free_string(struct oval_string_map *);
49 struct oval_collection *oval_string_map_collect_values(struct oval_string_map *map, struct oval_collection *collection);
50
51
52 #endif /* OVAL_STRING_MAP_IMPL_H_ */