Embedded TCP/IP stack: fnet_service.h Source File

FNET

fnet_service.h
1 /**************************************************************************
2 *
3 * Copyright 2011-2017 by Andrey Butok. FNET Community.
4 * Copyright 2008-2010 by Andrey Butok. Freescale Semiconductor, Inc.
5 *
6 ***************************************************************************
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License"); you may
9 * not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 ***************************************************************************
21 *
22 * General service-header file.
23 *
24 ***************************************************************************/
25 
26 #ifndef _FNET_SERVICE_H_
27 
28 #define _FNET_SERVICE_H_
29 
30 #include "serial/fnet_serial.h"
31 #include "shell/fnet_shell.h"
32 #include "sntp/fnet_sntp.h"
33 #include "telnet/fnet_telnet.h"
34 #include "tftp/fnet_tftp_cln.h"
35 #include "tftp/fnet_tftp_srv.h"
36 #include "dhcp/fnet_dhcp_cln.h"
37 #include "dhcp/fnet_dhcp_srv.h"
38 #include "flash/fnet_flash.h"
39 #include "fs/fnet_fs.h"
40 #include "fs/fnet_fs_rom.h"
41 #include "tls/fnet_tls.h"
42 #include "http/fnet_http.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 
68 /**************************************************************************/
71 typedef void *fnet_service_desc_t;
72 
73 /**************************************************************************/
80 typedef void (* fnet_service_poll_t)(void *service_cookie);
81 
82 #if defined(__cplusplus)
83 extern "C" {
84 #endif
85 
86 /***************************************************************************/
99 void fnet_service_poll(void);
100 
101 /***************************************************************************/
122 fnet_service_desc_t fnet_service_register( fnet_service_poll_t service, void *service_cookie );
123 
124 /***************************************************************************/
141 
142 #if defined(__cplusplus)
143 }
144 #endif
145 
146 #endif
147 
void(* fnet_service_poll_t)(void *service_cookie)
Service callback function prototype.
Definition: fnet_service.h:80
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.
Definition: fnet_service.h:71
void fnet_service_poll(void)
Service polling function.
void fnet_service_unregister(fnet_service_desc_t desc)
Unregisters the service routine.

© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net