diff options
Diffstat (limited to 'libdhcp/include')
-rw-r--r-- | libdhcp/include/libdhcp/dhcp.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libdhcp/include/libdhcp/dhcp.h b/libdhcp/include/libdhcp/dhcp.h index 5d9b5cb..e6b1801 100644 --- a/libdhcp/include/libdhcp/dhcp.h +++ b/libdhcp/include/libdhcp/dhcp.h @@ -68,12 +68,7 @@ #define _LIBDHCP_DHCP_H_ #include <libmisc/net.h> - -/*#define _DHCP_DEBUG_*/ - -typedef struct {} implements_net_udpsock; -ssize_t sendto(implements_net_udpsock *sock, void *buf, size_t len, struct net_ip4_addr addr, uint16_t port); -ssize_t recvfrom(implements_net_udpsock *sock, void *buf, size_t len, struct net_ip4_addr *ret_addr, uint16_t *ret_port); +#include "hw/w5500.h" struct dhcp_lease { struct net_ip4_addr addr; @@ -131,12 +126,13 @@ void DHCP_time_handler(void); * * @note This function is always called by you main task. */ -uint8_t DHCP_run(implements_net_udpsock *sock, dhcp_callback_t cb); +uint8_t DHCP_run(struct w5500 *chip, uint8_t socknum, dhcp_callback_t cb); +//uint8_t DHCP_run(implements_net_packet_conn *sock, dhcp_callback_t cb); /* * @brief Stop DHCP processing * @note If you want to restart. call DHCP_init() and DHCP_run() */ -void DHCP_stop(implements_net_udpsock *sock); +void DHCP_stop(implements_net_packet_conn *sock); #endif /* _LIBDHCP_DHCP_H_ */ |