summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c7
1 files changed, 6 insertions, 1 deletions
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 <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);
}