diff options
| author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-04-02 18:47:52 -0400 |
|---|---|---|
| committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-04-02 18:47:52 -0400 |
| commit | f6df72229f3e0849135095ceedbb0785b7d6debf (patch) | |
| tree | f5076a600be7d62357296abd6da90beef4439e0c /src/map.c | |
| parent | f499e75251c463f2d736b19b60daec49a32b6faf (diff) | |
| download | slapi-nis-f6df72229f3e0849135095ceedbb0785b7d6debf.tar.gz slapi-nis-f6df72229f3e0849135095ceedbb0785b7d6debf.tar.xz slapi-nis-f6df72229f3e0849135095ceedbb0785b7d6debf.zip | |
- stub out where we'll be providing data
Diffstat (limited to 'src/map.c')
| -rw-r--r-- | src/map.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,8 +3,8 @@ #endif #include <sys/types.h> -#include <assert.h> #include <stdlib.h> +#include <time.h> #include <string.h> #include <unistd.h> @@ -14,6 +14,7 @@ #include <secport.h> #include <plarenas.h> +#include "backend.h" #include "dispatch.h" #include "map.h" #include "portmap.h" @@ -422,6 +423,7 @@ map_data_unset_entry_key(struct plugin_state *state, map = map_data_find_map(state, domain_name, map_name); entry = map_data_find_map_entry(state, map, key_len, key); map_data_unset_map_entry(state, map, entry); + map->last_changed = time(NULL); } void @@ -435,6 +437,7 @@ map_data_unset_entry_id(struct plugin_state *state, map = map_data_find_map(state, domain_name, map_name); entry = map_data_find_map_entry_id(state, map, id); map_data_unset_map_entry(state, map, entry); + map->last_changed = time(NULL); } /* Add an entry to a map. */ @@ -483,9 +486,11 @@ map_data_set_entry(struct plugin_state *state, } } } + map->last_changed = time(NULL); } void map_init(struct plugin_state *state) { + backend_init(state); } |
