From: Joseph C. Lehner <joseph.c.lehner@gmail.com>
Date: Fri, 5 Feb 2016 18:23:56 +0000 (+0200)
Subject: Remove ethsock.h
X-Git-Tag: v0.9~37
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4beccaac20d53743935632b36690fde9fa10a654;p=oweals%2Fnmrpflash.git

Remove ethsock.h
---

diff --git a/ethsock.c b/ethsock.c
index bebf7f6..cd3d26a 100644
--- a/ethsock.c
+++ b/ethsock.c
@@ -3,7 +3,6 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include "ethsock.h"
 #include "nmrpd.h"
 
 #if defined(NMRPFLASH_WINDOWS)
diff --git a/main.c b/main.c
index 2dfc167..41bc08b 100644
--- a/main.c
+++ b/main.c
@@ -21,7 +21,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include "nmrpd.h"
-#include "ethsock.h"
 
 int verbosity = 0;
 
diff --git a/nmrp.c b/nmrp.c
index 1f31e01..781a0d2 100644
--- a/nmrp.c
+++ b/nmrp.c
@@ -24,7 +24,6 @@
 #include <errno.h>
 #include <stdio.h>
 #include <time.h>
-#include "ethsock.h"
 #include "nmrpd.h"
 
 #define NMRP_HDR_LEN 6
diff --git a/nmrpd.h b/nmrpd.h
index 3105b95..1794e5f 100644
--- a/nmrpd.h
+++ b/nmrpd.h
@@ -79,4 +79,14 @@ void sock_perror(const char *msg);
 
 extern int verbosity;
 
+struct ethsock;
+
+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);
+
 #endif