Fix silly naming clash on MinGW
[oweals/nmrpflash.git] / ethsock.h
1 #include <inttypes.h>
2 #include <stdint.h>
3
4 struct ethsock;
5
6 struct ethsock *ethsock_create(const char *intf, uint16_t protocol);
7 int ethsock_close(struct ethsock *sock);
8 int ethsock_send(struct ethsock *sock, void *buf, size_t len);
9 ssize_t ethsock_recv(struct ethsock *sock, void *buf, size_t len);
10 int ethsock_set_timeout(struct ethsock *sock, unsigned msec);
11 uint8_t *ethsock_get_hwaddr(struct ethsock *sock);
12 int ethsock_list_all(void);