]> git.ipfire.org Git - thirdparty/chrony.git/blame - nameserv_async.h
conf: rework allow/deny parser
[thirdparty/chrony.git] / nameserv_async.h
CommitLineData
ed96b4d4
ML
1/*
2 chronyd/chronyc - Programs for keeping computer clocks accurate.
3
4 **********************************************************************
5 * Copyright (C) Miroslav Lichvar 2014
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of version 2 of the GNU General Public License as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 *
20 **********************************************************************
21
22 =======================================================================
23
24 Header for asynchronous nameserver functions
25 */
26
27
28#ifndef GOT_NAMESERV_ASYNC_H
29#define GOT_NAMESERV_ASYNC_H
30
31#include "nameserv.h"
32
33/* Function type for callback to process the result */
4d1a754e 34typedef void (*DNS_NameResolveHandler)(DNS_Status status, int n_addrs, IPAddr *ip_addrs, void *anything);
ed96b4d4
ML
35
36/* Request resolving of a name to IP address. The handler will be
967e358d 37 called when the result is available. */
ed96b4d4
ML
38extern void DNS_Name2IPAddressAsync(const char *name, DNS_NameResolveHandler handler, void *anything);
39
40#endif