Open SCAP Library
Loading...
Searching...
No Matches
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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
35//struct oval_collection;
36//struct oval_iterator;
37
38struct oval_collection *oval_collection_new(void);
39void oval_collection_free(struct oval_collection *);
40void oval_collection_free_items(struct oval_collection *, oscap_destruct_func);
41int oval_collection_is_empty(struct oval_collection *collection);
42void oval_collection_add(struct oval_collection *, void *);
43struct oval_iterator *oval_collection_iterator(struct oval_collection *);
44struct oval_iterator *oval_collection_iterator_new(void);
45void oval_collection_iterator_add(struct oval_iterator *, void *);
46bool oval_collection_iterator_has_more(struct oval_iterator *);
47int oval_collection_iterator_remaining(struct oval_iterator *);
48void *oval_collection_iterator_next(struct oval_iterator *);
49void oval_collection_iterator_free(struct oval_iterator *);
50
52
53
54#endif /* OVALCOLLECTION_H_ */
Definition oval_collection.c:50
Definition oval_collection.c:54