Open SCAP Library
oval_smc_iterator_impl.h
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Authors:
20  * Šimon Lukašík
21  *
22  *
23  *
24  * This module implements a simple iterator iterating through SMC structure.
25  * That is StringMap that points to the oval_collection objects.
26  *
27  * This module implements only sub set of iterator functionality for iterating
28  * through map/list structure. Limits: It supposes that list (slave_col) is
29  * never empty.
30  */
31 
32 #ifndef OVAL_SMC_ITERATOR_H
33 #define OVAL_SMC_ITERATOR_H
34 
35 #include <stdbool.h>
36 #include "oval_smc_impl.h"
37 #include "common/util.h"
38 
39 
40 struct oval_smc_iterator;
41 
42 struct oval_smc_iterator *oval_smc_iterator_new(struct oval_smc *mapping);
43 
44 void oval_smc_iterator_free(struct oval_smc_iterator *it);
45 
46 bool oval_smc_iterator_has_more(struct oval_smc_iterator *it);
47 
48 void *oval_smc_iterator_next(struct oval_smc_iterator *it);
49 
50 
51 #endif
oval_smc_iterator
Definition: oval_smc_iterator.c:40