25 #ifndef _FNET_SERVICE_H_ 27 #define _FNET_SERVICE_H_ 29 #include "serial/fnet_serial.h" 30 #include "shell/fnet_shell.h" 31 #include "sntp/fnet_sntp.h" 32 #include "telnet/fnet_telnet.h" 33 #include "tftp/fnet_tftp_cln.h" 34 #include "tftp/fnet_tftp_srv.h" 35 #include "dhcp/fnet_dhcp_cln.h" 36 #include "dhcp/fnet_dhcp_srv.h" 37 #include "flash/fnet_flash.h" 38 #include "fs/fnet_fs.h" 39 #include "fs/fnet_fs_rom.h" 40 #include "tls/fnet_tls.h" 41 #include "http/fnet_http_srv.h" 42 #include "http/fnet_http_cln.h" 43 #include "dns/fnet_dns.h" 44 #include "ping/fnet_ping.h" 45 #include "llmnr/fnet_llmnr.h" 46 #include "mdns/fnet_mdns.h" 47 #include "autoip/fnet_autoip.h" 48 #include "link/fnet_link.h" 49 #include "tls/fnet_tls.h" 50 #include "bench/fnet_bench_srv.h" 51 #include "bench/fnet_bench_cln.h" 52 #include "azure/fnet_azure.h" 83 #if defined(__cplusplus) 143 #if defined(__cplusplus) 149 #if FNET_CFG_MULTITHREADING 150 void fnet_service_mutex_lock(
void);
151 void fnet_service_mutex_unlock(
void);
153 #define fnet_service_mutex_lock() do{}while(0) 154 #define fnet_service_mutex_unlock() do{}while(0) void(* fnet_service_poll_t)(void *service_cookie)
Service callback function prototype.
fnet_service_desc_t fnet_service_register(fnet_service_poll_t service, void *service_cookie)
Registers the service routine in the polling list.
void * fnet_service_desc_t
Descriptor of a registered service.
void fnet_service_poll(void)
Service polling function.
void fnet_service_unregister(fnet_service_desc_t desc)
Unregisters the service routine.