]> git.proxmox.com Git - mirror_frr.git/blob - lib/resolver.h
Merge pull request #5009 from donaldsharp/interface_deletion
[mirror_frr.git] / lib / resolver.h
1 /* C-Ares integration to Quagga mainloop
2 * Copyright (c) 2014-2015 Timo Teräs
3 *
4 * This file is free software: you may copy, redistribute and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 */
9
10 #ifndef _FRR_RESOLVER_H
11 #define _FRR_RESOLVER_H
12
13 #include "thread.h"
14 #include "sockunion.h"
15
16 struct resolver_query {
17 void (*callback)(struct resolver_query *, int n, union sockunion *);
18 };
19
20 void resolver_init(struct thread_master *tm);
21 void resolver_resolve(struct resolver_query *query, int af,
22 const char *hostname, void (*cb)(struct resolver_query *,
23 int, union sockunion *));
24
25 #endif /* _FRR_RESOLVER_H */