| 1 | /** |
| 2 | * @file oval_collection_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 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 OVALCOLLECTION_H_ |
| 31 | #define OVALCOLLECTION_H_ |
| 32 | #include "../common/util.h" |
| 33 | |
| 34 | |
| 35 | //struct oval_collection; |
| 36 | //struct oval_iterator; |
| 37 | |
| 38 | struct oval_collection *oval_collection_new(void); |
| 39 | void oval_collection_free(struct oval_collection *); |
| 40 | void oval_collection_free_items(struct oval_collection *, oscap_destruct_func); |
| 41 | int oval_collection_is_empty(struct oval_collection *collection); |
| 42 | void oval_collection_add(struct oval_collection *, void *); |
| 43 | struct oval_iterator *oval_collection_iterator(struct oval_collection *); |
| 44 | struct oval_iterator *oval_collection_iterator_new(void); |
| 45 | void oval_collection_iterator_add(struct oval_iterator *, void *); |
| 46 | bool oval_collection_iterator_has_more(struct oval_iterator *); |
| 47 | int oval_collection_iterator_remaining(struct oval_iterator *); |
| 48 | void *oval_collection_iterator_next(struct oval_iterator *); |
| 49 | void oval_collection_iterator_free(struct oval_iterator *); |
| 50 | |
| 51 | struct oval_string_iterator; |
| 52 | |
| 53 | |
| 54 | #endif /* OVALCOLLECTION_H_ */ |