Free (GPLv2) TCP/IP stack developed by TASS Belgium
Fork of PicoTCP by
modules/pico_dns_client.h@29:1a47b7151851, 2013-06-16 (annotated)
- Committer:
- daniele
- Date:
- Sun Jun 16 20:19:44 2013 +0000
- Revision:
- 29:1a47b7151851
Updated from masterbranch;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
daniele | 29:1a47b7151851 | 1 | /********************************************************************* |
daniele | 29:1a47b7151851 | 2 | PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved. |
daniele | 29:1a47b7151851 | 3 | See LICENSE and COPYING for usage. |
daniele | 29:1a47b7151851 | 4 | |
daniele | 29:1a47b7151851 | 5 | . |
daniele | 29:1a47b7151851 | 6 | |
daniele | 29:1a47b7151851 | 7 | Authors: Kristof Roelants |
daniele | 29:1a47b7151851 | 8 | *********************************************************************/ |
daniele | 29:1a47b7151851 | 9 | |
daniele | 29:1a47b7151851 | 10 | #ifndef _INCLUDE_PICO_DNS_CLIENT |
daniele | 29:1a47b7151851 | 11 | #define _INCLUDE_PICO_DNS_CLIENT |
daniele | 29:1a47b7151851 | 12 | |
daniele | 29:1a47b7151851 | 13 | #define PICO_DNS_NS_DEL 0 |
daniele | 29:1a47b7151851 | 14 | #define PICO_DNS_NS_ADD 1 |
daniele | 29:1a47b7151851 | 15 | #include <stdint.h> |
daniele | 29:1a47b7151851 | 16 | |
daniele | 29:1a47b7151851 | 17 | int pico_dns_client_init(); |
daniele | 29:1a47b7151851 | 18 | /* flag is PICO_DNS_NS_DEL or PICO_DNS_NS_ADD */ |
daniele | 29:1a47b7151851 | 19 | int pico_dns_client_nameserver(struct pico_ip4 *ns, uint8_t flag); |
daniele | 29:1a47b7151851 | 20 | int pico_dns_client_getaddr(const char *url, void (*callback)(char *ip, void *arg), void *arg); |
daniele | 29:1a47b7151851 | 21 | int pico_dns_client_getname(const char *ip, void (*callback)(char *url, void *arg), void *arg); |
daniele | 29:1a47b7151851 | 22 | |
daniele | 29:1a47b7151851 | 23 | #endif /* _INCLUDE_PICO_DNS_CLIENT */ |