1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
struct plugin_state;
struct slapi_pblock;
/* Functions to pull data out of maps. */
void map_startup(struct plugin_state *state);
void map_init(struct slapi_pblock *pb, struct plugin_state *state);
PRBool map_supports_domain(struct plugin_state *state,
const char *domain,
PRBool *supported);
PRBool map_supports_map(struct plugin_state *state,
const char *domain,
const char *map,
PRBool *supported);
PRBool map_match(struct plugin_state *state,
const char *domain, const char *map,
unsigned int key_len, char *key,
unsigned int *value_len, char **value);
PRBool map_first(struct plugin_state *state,
const char *domain, const char *map,
unsigned int *first_key_len, char **first_key,
unsigned int *first_value_len, char **first_value);
PRBool map_next(struct plugin_state *state,
const char *domain, const char *map,
unsigned int prev_len, const char *prev,
unsigned int *next_key_len, char **next_key,
unsigned int *next_value_len, char **next_value);
PRBool map_order(struct plugin_state *state,
const char *domain, const char *map,
unsigned int *order);
/* Functions to push data into maps. */
void map_data_clear_map(struct plugin_state *state,
const char *domain_name, const char *map_name);
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,
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,
unsigned int key_len, const char *key);
void map_data_unset_entry_id(struct plugin_state *state,
const char *domain_name, const char *map_name,
const char *id);
void map_data_set_entry(struct plugin_state *state,
const char *domain_name, const char *map_name,
const char *id, const char **related_ids,
unsigned int key_len, char *key,
unsigned int value_len, char *value);
PRBool map_data_foreach_entry_id(struct plugin_state *state, const char *id,
PRBool (*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),
void *cbdata);
PRBool map_data_foreach_entry_related_id(struct plugin_state *state,
const char *related_id,
PRBool (*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),
void *cbdata);
PRBool map_data_foreach_map(struct plugin_state *state, const char *domain_name,
PRBool (*fn)(const char *domain,
const char *map,
void *backend_data,
void *cbdata),
void *cbdata);
|