From 5b4f160b9440172108e3806cdc30fa080a6c3c7e Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 10 Jun 2008 11:48:05 -0400 Subject: - keep track of whether a map is "secure" or not, returning that information when we're asked for information --- src/map.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 1850921..e5aeda1 100644 --- a/src/map.h +++ b/src/map.h @@ -33,17 +33,18 @@ bool_t map_supports_domain(struct plugin_state *state, bool_t map_supports_map(struct plugin_state *state, const char *domain, const char *map, - bool_t *supported); + bool_t *supported, + bool_t *secure); bool_t map_match(struct plugin_state *state, - const char *domain, const char *map, + const char *domain, const char *map, bool_t *secure, unsigned int key_len, char *key, unsigned int *value_len, char **value); bool_t map_first(struct plugin_state *state, - const char *domain, const char *map, + const char *domain, const char *map, bool_t *secure, unsigned int *first_key_len, char **first_key, unsigned int *first_value_len, char **first_value); bool_t map_next(struct plugin_state *state, - const char *domain, const char *map, + const char *domain, const char *map, bool_t *secure, unsigned int prev_len, const char *prev, unsigned int *next_key_len, char **next_key, unsigned int *next_value_len, char **next_value); @@ -57,6 +58,7 @@ void map_data_unset_map(struct plugin_state *state, const char *domain_name, const char *map_name); void map_data_set_map(struct plugin_state *state, const char *domain_name, const char *map_name, + bool_t secure, void *backend_data, void (*free_backend_data)(void *p)); void map_data_unset_entry_key(struct plugin_state *state, const char *domain_name, const char *map_name, @@ -75,6 +77,7 @@ bool_t map_data_check_entry(struct plugin_state *state, bool_t map_data_foreach_entry_id(struct plugin_state *state, const char *id, bool_t (*fn)(const char *domain, const char *map, + bool_t secure, const char *key, unsigned int key_len, const char *value, @@ -84,6 +87,7 @@ bool_t map_data_foreach_entry_id(struct plugin_state *state, const char *id, bool_t map_data_foreach_map(struct plugin_state *state, const char *domain_name, bool_t (*fn)(const char *domain, const char *map, + bool_t secure, void *backend_data, void *cbdata), void *cbdata); -- cgit