From f6df72229f3e0849135095ceedbb0785b7d6debf Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 2 Apr 2008 18:47:52 -0400 Subject: - stub out where we'll be providing data --- src/map.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/map.c') diff --git a/src/map.c b/src/map.c index 0c08625..e8fe476 100644 --- a/src/map.c +++ b/src/map.c @@ -3,8 +3,8 @@ #endif #include -#include #include +#include #include #include @@ -14,6 +14,7 @@ #include #include +#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); } -- cgit