Open SCAP Library
/home/pvrabec/project/openscap/openscap-0.7.4/src/OVAL/oval_string_map_impl.h
Go to the documentation of this file.
00001 
00008 /*
00009  * Copyright 2009 Red Hat Inc., Durham, North Carolina.
00010  * All Rights Reserved.
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  * Authors:
00027  *      "David Niemoller" <David.Niemoller@g2-inc.com>
00028  */
00029 
00030 #ifndef OVAL_STRING_MAP_IMPL_H_
00031 #define OVAL_STRING_MAP_IMPL_H_
00032 
00033 #include "oval_collection_impl.h"
00034 #include "../common/util.h"
00035 
00036 OSCAP_HIDDEN_START;
00037 
00038 struct oval_string_map_s;
00039 
00040 struct oval_string_map *oval_string_map_new(void);
00041 void oval_string_map_put(struct oval_string_map *, const char *, void *);
00042 
00043 void oval_string_map_put_string(struct oval_string_map *, const char *, const char *);
00044 struct oval_iterator *oval_string_map_keys(struct oval_string_map *);
00045 struct oval_iterator *oval_string_map_values(struct oval_string_map *);
00046 void *oval_string_map_get_value(struct oval_string_map *, const char *);
00047 void oval_string_map_free(struct oval_string_map *, oscap_destruct_func);
00048 void oval_string_map_free_string(struct oval_string_map *);
00049 
00050 OSCAP_HIDDEN_END;
00051 
00052 #endif                          /* OVAL_STRING_MAP_IMPL_H_ */