00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef OVAL_SMC_H
00028 #define OVAL_SMC_H
00029
00030 #include "common/util.h"
00031
00032 OSCAP_HIDDEN_START;
00033
00034 struct oval_smc;
00035
00036 struct oval_smc *oval_smc_new(void);
00037
00038 void oval_smc_put_last(struct oval_smc *map, const char *key, void *item);
00039
00040 void oval_smc_put_last_if_not_exists(struct oval_smc *map, const char *key, void *item);
00041
00042 struct oval_iterator *oval_smc_get_all_it(struct oval_smc *map, const char *key);
00043
00044 void *oval_smc_get_last(struct oval_smc *map, const char *key);
00045
00046 void oval_smc_free0(struct oval_smc *map);
00047
00048 void oval_smc_free(struct oval_smc *map, oscap_destruct_func destructor);
00049
00050 typedef void *(*oval_smc_user_clone_func) (void *user_data, void *item);
00051
00052 struct oval_smc *oval_smc_clone_user(struct oval_smc *oldmap, oval_smc_user_clone_func cloner, void *user_data);
00053
00054 OSCAP_HIDDEN_END;
00055
00056 #endif