mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 22:08:28 +00:00 
			
		
		
		
	Apply the pre-commit hook whitespace fixes to all files in the repo. (Line endings, blank lines at end of file, trailing whitespace)
		
			
				
	
	
		
			27 lines
		
	
	
		
			738 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			738 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * dhcpserver dependecy injection -- preincluded to inject interface test functions into static variables
 | 
						|
 *
 | 
						|
 */
 | 
						|
#include "no_warn_host.h"
 | 
						|
#include "lwip/pbuf.h"
 | 
						|
#include "lwip/udp.h"
 | 
						|
#include "tcpip_adapter.h"
 | 
						|
 | 
						|
#ifndef BUILDING_DEF
 | 
						|
 | 
						|
static void handle_dhcp(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port);
 | 
						|
 | 
						|
void (*dhcp_test_static_handle_hdcp)(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) = NULL;
 | 
						|
 | 
						|
void dhcp_test_init_di(void)
 | 
						|
{
 | 
						|
    dhcp_test_static_handle_hdcp = handle_dhcp;
 | 
						|
}
 | 
						|
 | 
						|
void dhcp_test_handle_dhcp(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
 | 
						|
{
 | 
						|
    dhcp_test_static_handle_hdcp(arg, pcb, p, addr, port);
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |