Embedded TCP/IP stack  4.7.0
fnet_http_srv_ssi.h
1 /**************************************************************************
2 *
3 * Copyright 2008-2018 by Andrey Butok. FNET Community.
4 *
5 ***************************************************************************
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
8 * not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 ***************************************************************************
20 *
21 * FNET HTTP Server SSI API.
22 *
23 ***************************************************************************/
24 
25 #ifndef _FNET_HTTP_SRV_SSI_H_
26 
27 #define _FNET_HTTP_SRV_SSI_H_
28 
29 #if (FNET_CFG_HTTP_SRV && FNET_CFG_HTTP_SRV_SSI)|| defined(__DOXYGEN__)
30 
34 /**************************************************************************/
39 #define FNET_HTTP_SRV_SSI_EXTENSION "shtml"
40 
41 /**************************************************************************/
69 typedef fnet_return_t(*fnet_http_srv_ssi_handle_t)(fnet_char_t *query, fnet_uint32_t *cookie);
70 
71 /**************************************************************************/
106 typedef fnet_size_t (*fnet_http_srv_ssi_send_t)(fnet_uint8_t *buffer, fnet_size_t buffer_size, fnet_bool_t *eof, fnet_uint32_t *cookie);
107 
108 /**************************************************************************/
126 typedef struct
127 {
137 #endif /* FNET_CFG_HTTP_SRV && FNET_CFG_HTTP_SRV_SSI */
138 
139 #endif
fnet_char_t * name
SSI command name.
fnet_return_t
General return codes, used by most of API functions.
Definition: fnet_stdlib.h:89
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:55
fnet_http_srv_ssi_handle_t handle
Pointer to the SSI parameters handler. It's optional.
fnet_size_t(* fnet_http_srv_ssi_send_t)(fnet_uint8_t *buffer, fnet_size_t buffer_size, fnet_bool_t *eof, fnet_uint32_t *cookie)
Callback function prototype of the SSI include function.
fnet_bool_t
Boolean type.
Definition: fnet_stdlib.h:80
SSI callback function table.
char fnet_char_t
Type representing the charecter.
Definition: fnet_stdlib.h:75
fnet_return_t(* fnet_http_srv_ssi_handle_t)(fnet_char_t *query, fnet_uint32_t *cookie)
Callback function prototype of the SSI parameters handler.
fnet_http_srv_ssi_send_t send
Pointer to the SSI include function. This function actually inserts dynamic content to an existing HT...

© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net