diff options
| author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-07-03 11:48:24 -0400 |
|---|---|---|
| committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-07-03 11:48:24 -0400 |
| commit | 7ff56bef737b6576fc2372d2e25dd3a4c431d2f2 (patch) | |
| tree | 88265510a475e242e7e3624380eebb59469220e8 /src | |
| parent | 5388de3586a068df8f137ad2d280fadab490e14a (diff) | |
- add the new parameter to return always-NULL backend data
Diffstat (limited to 'src')
| -rw-r--r-- | src/dummymap.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/dummymap.c b/src/dummymap.c index fc705d2..d17a9a4 100644 --- a/src/dummymap.c +++ b/src/dummymap.c @@ -193,7 +193,8 @@ bool_t map_match(struct plugin_state *state, const char *domain, const char *map, bool_t *secure, unsigned int key_len, char *key, - unsigned int *value_len, char **value, const char **id) + unsigned int *value_len, char **value, + const char **id, void **backend_data) { struct entry *entries; int i; @@ -213,6 +214,9 @@ map_match(struct plugin_state *state, *value = entries[i].value; *value_len = strlen(entries[i].value); *id = entries[i].key; + if (backend_data != NULL) { + *backend_data = NULL; + } return TRUE; } @@ -222,7 +226,7 @@ map_match_id(struct plugin_state *state, const char *in_id, unsigned int in_index, unsigned int *key_len, char **key, unsigned int *value_len, char **value, - const char **id) + const char **id, void **backend_data) { struct entry *entries; int i; @@ -246,6 +250,9 @@ map_match_id(struct plugin_state *state, *value = entries[i].value; *value_len = strlen(entries[i].value); *id = entries[i].id; + if (backend_data != NULL) { + *backend_data = NULL; + } return TRUE; } |
