Better error messages
[oweals/nmrpflash.git] / ethsock.h
index 6e2c50f35983659679cb8ba54a6012e91ad78429..16e38645f708139581edf2e88570b54e1b5db9f5 100644 (file)
--- a/ethsock.h
+++ b/ethsock.h
@@ -1,10 +1,12 @@
+#include <inttypes.h>
 #include <stdint.h>
 
 struct ethsock;
 
-struct ethsock *ethsock_create(const char *interface, uint16_t protocol);
+struct ethsock *ethsock_create(const char *intf, uint16_t protocol);
 int ethsock_close(struct ethsock *sock);
 int ethsock_send(struct ethsock *sock, void *buf, size_t len);
 ssize_t ethsock_recv(struct ethsock *sock, void *buf, size_t len);
 int ethsock_set_timeout(struct ethsock *sock, unsigned msec);
 uint8_t *ethsock_get_hwaddr(struct ethsock *sock);
+int ethsock_list_all(void);