From 2ddb773155d784323abb300240e4e0d97ae59ff3 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Fri, 18 Apr 2008 14:21:08 -0400 Subject: - use PR_Bool instead of bool_t, which is RPC-specific --- src/map.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/map.c') diff --git a/src/map.c b/src/map.c index 5310479..dfe8fc6 100644 --- a/src/map.c +++ b/src/map.c @@ -122,10 +122,10 @@ map_data_find_map_entry_id(struct plugin_state *state, /* Query function: check if we have a record for the domain. Return that * information in "supported", and return TRUE unless we ran into internal * errors. */ -bool_t +PRBool map_supports_domain(struct plugin_state *state, const char *domain_name, - bool_t *supported) + PRBool *supported) { *supported = (map_data_find_domain(state, domain_name) != NULL); return TRUE; @@ -134,10 +134,10 @@ map_supports_domain(struct plugin_state *state, /* Query function: check if we have a record for the map in the domain. Return * that information in "supported", and return TRUE unless we ran into internal * errors. */ -bool_t +PRBool map_supports_map(struct plugin_state *state, const char *domain_name, const char *map_name, - bool_t *supported) + PRBool *supported) { *supported = (map_data_find_map(state, domain_name, map_name) != NULL); return TRUE; @@ -145,7 +145,7 @@ map_supports_map(struct plugin_state *state, /* Query function: return an indication of the map's age. Should never * decrease. */ -bool_t +PRBool map_order(struct plugin_state *state, const char *domain_name, const char *map_name, unsigned int *order) @@ -162,7 +162,7 @@ map_order(struct plugin_state *state, /* Query function: return the entry value which matches the key. Return TRUE * if we can find a value which corresponds to the key. */ -bool_t +PRBool map_match(struct plugin_state *state, const char *domain_name, const char *map_name, unsigned int key_len, char *key, @@ -180,7 +180,7 @@ map_match(struct plugin_state *state, /* Query function: return the first entry's key and value for a map. Return * FALSE if there's no domain or map. */ -bool_t +PRBool map_first(struct plugin_state *state, const char *domain_name, const char *map_name, unsigned int *first_key_len, char **first_key, @@ -206,7 +206,7 @@ map_first(struct plugin_state *state, /* Query function: return the successor entry's key and value for a map. * Return FALSE if there's no domain or map, or if the predecessor was the last * key in the map. */ -bool_t +PRBool map_next(struct plugin_state *state, const char *domain_name, const char *map_name, unsigned int prev_len, const char *prev, -- cgit