From fe9e7b71cf0930db1f8d6872f415466689511885 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 23 May 2019 12:23:02 +0200 Subject: lib: split off c-ares code from nhrpd This is useful in other places too, e.g. for BMP outbound connections. Signed-off-by: David Lamparter --- nhrpd/nhrpd.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'nhrpd/nhrpd.h') diff --git a/nhrpd/nhrpd.h b/nhrpd/nhrpd.h index 89de145e6..670c9f4f1 100644 --- a/nhrpd/nhrpd.h +++ b/nhrpd/nhrpd.h @@ -16,6 +16,7 @@ #include "zclient.h" #include "debug.h" #include "memory.h" +#include "resolver.h" DECLARE_MGROUP(NHRPD) @@ -84,15 +85,6 @@ static inline int notifier_active(struct notifier_list *l) return !list_empty(&l->notifier_head); } -struct resolver_query { - void (*callback)(struct resolver_query *, int n, union sockunion *); -}; - -void resolver_init(void); -void resolver_resolve(struct resolver_query *query, int af, - const char *hostname, void (*cb)(struct resolver_query *, - int, union sockunion *)); - void nhrp_zebra_init(void); void nhrp_zebra_terminate(void); -- cgit v1.2.3