| 1 | /* |
| 2 | * Copyright 2013 Red Hat Inc., Durham, North Carolina. |
| 3 | * All Rights Reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | * |
| 19 | * Authors: |
| 20 | * Šimon Lukašík |
| 21 | * |
| 22 | * |
| 23 | * |
| 24 | * This module was created based on the need to maintain the existing API |
| 25 | * after an implementation detail was changed. |
| 26 | * |
| 27 | * There was a change of type of oval_syschar_model->syschar_mapx which used |
| 28 | * to be a simple map. And now it is map which refers to lists. That is based |
| 29 | * on the OVAL 5.10.1 specification which allows for a given object_id |
| 30 | * multiple collected object elements that are distinguished only by |
| 31 | * variable_instance attribute. |
| 32 | * |
| 33 | */ |
| 34 | |
| 35 | #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:409:9`! |
| 36 | #include <config.h>cxx . . $ `<file>/build/config.h`/ |
| 37 | #endif |
| 38 | |
| 39 | #include "public/oval_system_characteristics.h"cxx . . $ `<file>/src/OVAL/public/oval_system_characteristics.h`/ |
| 40 | #include "oval_system_characteristics_impl.h"cxx . . $ `<file>/src/OVAL/oval_system_characteristics_impl.h`/ |
| 41 | #include "adt/oval_smc_iterator_impl.h"cxx . . $ `<file>/src/OVAL/adt/oval_smc_iterator_impl.h`/ |
| 42 | #include "adt/oval_smc_impl.h"cxx . . $ `<file>/src/OVAL/adt/oval_smc_impl.h`/ |
| 43 | |
| 44 | struct oval_syschar_iteratorcxx . . $ oval_syschar_iterator# *oval_syschar_iterator_newcxx . . $ oval_syschar_iterator_new(4e71f8d1af67ea00).(struct oval_smccxx . . $ oval_smc# *mapping) |
| 45 | { |
| 46 | return (struct oval_syschar_iteratorcxx . . $ oval_syschar_iterator# *) oval_smc_iterator_newcxx . . $ oval_smc_iterator_new(b25fd823588405a4).(mapping); |
| 47 | } |
| 48 | |
| 49 | void oval_syschar_iterator_freecxx . . $ oval_syschar_iterator_free(db5a0605a8942183).(struct oval_syschar_iteratorcxx . . $ oval_syschar_iterator# *it) |
| 50 | { |
| 51 | oval_smc_iterator_freecxx . . $ oval_smc_iterator_free(ecf89839dce0fea).((struct oval_smc_iteratorcxx . . $ oval_smc_iterator# *) it); |
| 52 | } |
| 53 | |
| 54 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! oval_syschar_iterator_has_morecxx . . $ oval_syschar_iterator_has_more(ebf78dccdea838b7).(struct oval_syschar_iteratorcxx . . $ oval_syschar_iterator# *it) |
| 55 | { |
| 56 | return oval_smc_iterator_has_morecxx . . $ oval_smc_iterator_has_more(d7926f168e3d45db).((struct oval_smc_iteratorcxx . . $ oval_smc_iterator# *) it); |
| 57 | } |
| 58 | |
| 59 | struct oval_syscharcxx . . $ oval_syschar# *oval_syschar_iterator_nextcxx . . $ oval_syschar_iterator_next(3aff59e7a3f82c3d).(struct oval_syschar_iteratorcxx . . $ oval_syschar_iterator# *it) |
| 60 | { |
| 61 | return (struct oval_syscharcxx . . $ oval_syschar# *) oval_smc_iterator_nextcxx . . $ oval_smc_iterator_next(aa65d553c349a165).((struct oval_smc_iteratorcxx . . $ oval_smc_iterator# *) it); |
| 62 | } |