summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/map.c b/src/map.c
index 96b78d4..bd51ccc 100644
--- a/src/map.c
+++ b/src/map.c
@@ -175,7 +175,7 @@ map_data_find_map_entry_id(struct plugin_state *state,
/* Handlers for the list of related IDs. On this side we actually store them
* as one contiguous chunk of memory. */
-static PRBool
+static bool_t
map_id_in_id_list(const char *id, char **id_list)
{
while ((*id_list) != NULL) {
@@ -238,10 +238,10 @@ map_id_free_id_list(char **id_list)
* true, or if "id" is not NULL and matches the entry's ID, or if the
* "related_id" is not NULL and in the list of related IDs. If the callback
* returns FALSE, then we abort and return FALSE, otherwise we return TRUE. */
-static PRBool
+static bool_t
map_data_foreach_entry(struct plugin_state *state,
- PRBool all, const char *id, const char *related_id,
- PRBool (*fn)(const char *domain, const char *map,
+ bool_t all, const char *id, const char *related_id,
+ bool_t (*fn)(const char *domain, const char *map,
const char *key, unsigned int key_len,
const char *value, unsigned int value_len,
const char *id, void *cbdata),
@@ -280,9 +280,9 @@ map_data_foreach_entry(struct plugin_state *state,
}
/* Iterate over every entry which matches the corresponding ID. */
-PRBool
+bool_t
map_data_foreach_entry_id(struct plugin_state *state, const char *id,
- PRBool (*fn)(const char *domain, const char *map,
+ bool_t (*fn)(const char *domain, const char *map,
const char *key,
unsigned int key_len,
const char *value,
@@ -294,10 +294,10 @@ map_data_foreach_entry_id(struct plugin_state *state, const char *id,
}
/* Iterate over every entry which lists the ID as a related ID. */
-PRBool
+bool_t
map_data_foreach_entry_related_id(struct plugin_state *state,
const char *related_id,
- PRBool (*fn)(const char *domain,
+ bool_t (*fn)(const char *domain,
const char *map,
const char *key,
unsigned int key_len,
@@ -313,9 +313,9 @@ map_data_foreach_entry_related_id(struct plugin_state *state,
/* Iterate over all maps, calling the callback with information about the map
* and whatever the caller originally told us to keep track of when the map was
* first set up. */
-PRBool
+bool_t
map_data_foreach_map(struct plugin_state *state, const char *domain_name,
- PRBool (*fn)(const char *domain,
+ bool_t (*fn)(const char *domain,
const char *map,
void *backend_data,
void *cbdata),
@@ -345,10 +345,10 @@ map_data_foreach_map(struct plugin_state *state, const char *domain_name,
/* 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. */
-PRBool
+bool_t
map_supports_domain(struct plugin_state *state,
const char *domain_name,
- PRBool *supported)
+ bool_t *supported)
{
*supported = (map_data_find_domain(state, domain_name) != NULL);
return TRUE;
@@ -357,10 +357,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. */
-PRBool
+bool_t
map_supports_map(struct plugin_state *state,
const char *domain_name, const char *map_name,
- PRBool *supported)
+ bool_t *supported)
{
*supported = (map_data_find_map(state, domain_name, map_name) != NULL);
return TRUE;
@@ -389,7 +389,7 @@ map_master_name(struct plugin_state *state, const char **master)
/* Query function: return an indication of the map's age. Should never
* decrease. */
-PRBool
+bool_t
map_order(struct plugin_state *state,
const char *domain_name, const char *map_name,
unsigned int *order)
@@ -406,7 +406,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. */
-PRBool
+bool_t
map_match(struct plugin_state *state,
const char *domain_name, const char *map_name,
unsigned int key_len, char *key,
@@ -424,7 +424,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. */
-PRBool
+bool_t
map_first(struct plugin_state *state,
const char *domain_name, const char *map_name,
unsigned int *first_key_len, char **first_key,
@@ -450,7 +450,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. */
-PRBool
+bool_t
map_next(struct plugin_state *state,
const char *domain_name, const char *map_name,
unsigned int prev_len, const char *prev,