Open SCAP Library: oval_collection_impl.h Source File

Open SCAP Library

oval_collection_impl.h
Go to the documentation of this file.
1
8 /*
9 * Copyright 2009 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 OVALCOLLECTION_H_
31 #define OVALCOLLECTION_H_
32 #include "../common/util.h"
33
34 OSCAP_HIDDEN_START;
35
36 //struct oval_collection;
37 //struct oval_iterator;
38
39 struct oval_collection *oval_collection_new(void);
40 void oval_collection_free(struct oval_collection *);
41 void oval_collection_free_items(struct oval_collection *, oscap_destruct_func);
42 int oval_collection_is_empty(struct oval_collection *collection);
43 void oval_collection_add(struct oval_collection *, void *);
44 struct oval_iterator *oval_collection_iterator(struct oval_collection *);
45 struct oval_iterator *oval_collection_iterator_new(void);
46 void oval_collection_iterator_add(struct oval_iterator *, void *);
47 bool oval_collection_iterator_has_more(struct oval_iterator *);
48 int oval_collection_iterator_remaining(struct oval_iterator *);
49 void *oval_collection_iterator_next(struct oval_iterator *);
50 void oval_collection_iterator_free(struct oval_iterator *);
51
52 struct oval_string_iterator;
53
54 OSCAP_HIDDEN_END;
55
56 #endif /* OVALCOLLECTION_H_ */
oval_string_iterator
oval_iterator
Definition: oval_collection.c:54
oval_collection
Definition: oval_collection.c:50