Remove ethsock.h

This commit is contained in:
Joseph C. Lehner 2016-02-05 20:23:56 +02:00
parent a1c9cc6e7f
commit 4beccaac20
4 changed files with 10 additions and 3 deletions

View file

@ -3,7 +3,6 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "ethsock.h"
#include "nmrpd.h"
#if defined(NMRPFLASH_WINDOWS)

1
main.c
View file

@ -21,7 +21,6 @@
#include <stdlib.h>
#include <stdio.h>
#include "nmrpd.h"
#include "ethsock.h"
int verbosity = 0;

1
nmrp.c
View file

@ -24,7 +24,6 @@
#include <errno.h>
#include <stdio.h>
#include <time.h>
#include "ethsock.h"
#include "nmrpd.h"
#define NMRP_HDR_LEN 6

10
nmrpd.h
View file

@ -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