| 1 | /** |
| 2 | * @addtogroup OVAL |
| 3 | * @{ |
| 4 | * @addtogroup OVALADT |
| 5 | * Interface for Definition model. |
| 6 | * @{ |
| 7 | * |
| 8 | * Class diagram |
| 9 | * \image html definition_model.png |
| 10 | * |
| 11 | * @file |
| 12 | * |
| 13 | * @author "David Niemoller" <[email protected]> |
| 14 | */ |
| 15 | |
| 16 | /* |
| 17 | * Copyright 2009-2013 Red Hat Inc., Durham, North Carolina. |
| 18 | * All Rights Reserved. |
| 19 | * |
| 20 | * This library is free software; you can redistribute it and/or |
| 21 | * modify it under the terms of the GNU Lesser General Public |
| 22 | * License as published by the Free Software Foundation; either |
| 23 | * version 2.1 of the License, or (at your option) any later version. |
| 24 | * |
| 25 | * This library is distributed in the hope that it will be useful, |
| 26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 28 | * Lesser General Public License for more details. |
| 29 | * |
| 30 | * You should have received a copy of the GNU Lesser General Public |
| 31 | * License along with this library; if not, write to the Free Software |
| 32 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 33 | * |
| 34 | * Authors: |
| 35 | * "David Niemoller" <[email protected]> |
| 36 | */ |
| 37 | |
| 38 | |
| 39 | #ifndef OVAL_ADT_H |
| 40 | #define OVAL_ADT_H |
| 41 | |
| 42 | #include <stdbool.h> |
| 43 | #include "oscap_export.h" |
| 44 | |
| 45 | /** |
| 46 | * @struct oval_string_iterator |
| 47 | */ |
| 48 | struct oval_string_iterator; |
| 49 | |
| 50 | /** |
| 51 | * @name Iterators |
| 52 | * @{ |
| 53 | */ |
| 54 | /** |
| 55 | * Returns <b>true</b> if the iterator is not exhausted. |
| 56 | * @memberof oval_string_iterator |
| 57 | */ |
| 58 | OSCAP_API bool oval_string_iterator_has_more(struct oval_string_iterator *); |
| 59 | /** |
| 60 | * Returns the next instance of char *. |
| 61 | * @memberof oval_string_iterator |
| 62 | */ |
| 63 | OSCAP_API char *oval_string_iterator_next(struct oval_string_iterator *); |
| 64 | /** |
| 65 | * Return number for remaining char * elements |
| 66 | * @memberof oval_string_iterator |
| 67 | */ |
| 68 | OSCAP_API int oval_string_iterator_remaining(struct oval_string_iterator *); |
| 69 | /** |
| 70 | * Frees the iterator. |
| 71 | * @memberof oval_string_iterator |
| 72 | */ |
| 73 | OSCAP_API void oval_string_iterator_free(struct oval_string_iterator *); |
| 74 | /** @} */ |
| 75 | |
| 76 | /** |
| 77 | * @} END OVALADT |
| 78 | */ |
| 79 | |
| 80 | /** |
| 81 | * @} END OVAL |
| 82 | */ |
| 83 | #endif |