CDC/ECM driver for mbed, based on USBDevice by mbed-official. Uses PicoTCP to access Ethernet USB device. License: GPLv2
Fork of USB_Ethernet by
modules/pico_dns_client.h@2:540f6e142d59, 2013-08-03 (annotated)
- Committer:
- daniele
- Date:
- Sat Aug 03 13:16:14 2013 +0000
- Revision:
- 2:540f6e142d59
Moved to single package
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
daniele | 2:540f6e142d59 | 1 | /********************************************************************* |
daniele | 2:540f6e142d59 | 2 | PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved. |
daniele | 2:540f6e142d59 | 3 | See LICENSE and COPYING for usage. |
daniele | 2:540f6e142d59 | 4 | |
daniele | 2:540f6e142d59 | 5 | . |
daniele | 2:540f6e142d59 | 6 | |
daniele | 2:540f6e142d59 | 7 | Authors: Kristof Roelants |
daniele | 2:540f6e142d59 | 8 | *********************************************************************/ |
daniele | 2:540f6e142d59 | 9 | |
daniele | 2:540f6e142d59 | 10 | #ifndef _INCLUDE_PICO_DNS_CLIENT |
daniele | 2:540f6e142d59 | 11 | #define _INCLUDE_PICO_DNS_CLIENT |
daniele | 2:540f6e142d59 | 12 | |
daniele | 2:540f6e142d59 | 13 | #define PICO_DNS_NS_DEL 0 |
daniele | 2:540f6e142d59 | 14 | #define PICO_DNS_NS_ADD 1 |
daniele | 2:540f6e142d59 | 15 | #include <stdint.h> |
daniele | 2:540f6e142d59 | 16 | |
daniele | 2:540f6e142d59 | 17 | int pico_dns_client_init(); |
daniele | 2:540f6e142d59 | 18 | /* flag is PICO_DNS_NS_DEL or PICO_DNS_NS_ADD */ |
daniele | 2:540f6e142d59 | 19 | int pico_dns_client_nameserver(struct pico_ip4 *ns, uint8_t flag); |
daniele | 2:540f6e142d59 | 20 | int pico_dns_client_getaddr(const char *url, void (*callback)(char *ip, void *arg), void *arg); |
daniele | 2:540f6e142d59 | 21 | int pico_dns_client_getname(const char *ip, void (*callback)(char *url, void *arg), void *arg); |
daniele | 2:540f6e142d59 | 22 | |
daniele | 2:540f6e142d59 | 23 | #endif /* _INCLUDE_PICO_DNS_CLIENT */ |