On the Atari it seems reasonable to start on a clear b&w screen even for non-CTK...
[contiki-2.x.git] / core / net / resolv.h
blob8d55d16316366b4384e5a3e99a0d13c41fa52b28
1 /**
2 * \file
3 * uIP DNS resolver code header file.
4 * \author Adam Dunkels <adam@dunkels.com>
5 */
7 /*
8 * Copyright (c) 2002-2003, Adam Dunkels.
9 * All rights reserved.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 * 3. The name of the author may not be used to endorse or promote
20 * products derived from this software without specific prior
21 * written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
24 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
27 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
29 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 * This file is part of the uIP TCP/IP stack.
37 * $Id: resolv.h,v 1.4 2010/05/31 15:22:08 nifi Exp $
40 #ifndef __RESOLV_H__
41 #define __RESOLV_H__
43 #include "contiki.h"
45 /**
46 * Event that is broadcasted when a DNS name has been resolved.
48 CCIF extern process_event_t resolv_event_found;
50 /* Functions. */
51 CCIF void resolv_conf(const uip_ipaddr_t *dnsserver);
52 CCIF uip_ipaddr_t *resolv_getserver(void);
53 CCIF uip_ipaddr_t *resolv_lookup(const char *name);
54 CCIF void resolv_query(const char *name);
56 PROCESS_NAME(resolv_process);
58 #endif /* __RESOLV_H__ */