From 508514c7c5a4cc2d4eae27a7e6df80b10ec4e863 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 24 Nov 2015 13:30:38 +0100 Subject: gtphub: cosmetic/prepare: add nr_map_refresh(). Sponsored-by: On-Waves ehi --- openbsc/include/openbsc/gtphub.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/gtphub.h b/openbsc/include/openbsc/gtphub.h index 1ddae76de..07af039aa 100644 --- a/openbsc/include/openbsc/gtphub.h +++ b/openbsc/include/openbsc/gtphub.h @@ -307,6 +307,11 @@ void nr_map_init(struct nr_map *map, struct nr_pool *pool, void nr_map_add(struct nr_map *map, struct nr_mapping *mapping, time_t now); +/* Restart the timeout for the given mapping. mapping must be a member of map. + */ +void nr_map_refresh(struct nr_map *map, struct nr_mapping *mapping, + time_t now); + /* Return a known mapping from nr_orig and the given origin. If nr_orig is * unknown, return NULL. */ struct nr_mapping *nr_map_get(const struct nr_map *map, -- cgit v1.2.3