Embedded TCP/IP stack: fnet_http_ssi.h Source File

FNET

fnet_http_ssi.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 * FNET HTTP Server SSI API.
23 *
24 ***************************************************************************/
25 
26 #ifndef _FNET_HTTP_SSI_H_
27 
28 #define _FNET_HTTP_SSI_H_
29 
30 #if (FNET_CFG_HTTP && FNET_CFG_HTTP_SSI)|| defined(__DOXYGEN__)
31 
35 /**************************************************************************/
40 #define FNET_HTTP_SSI_EXTENSION "shtml"
41 
42 /**************************************************************************/
70 typedef fnet_return_t(*fnet_http_ssi_handle_t)(fnet_char_t *query, fnet_uint32_t *cookie);
71 
72 /**************************************************************************/
107 typedef fnet_size_t (*fnet_http_ssi_send_t)(fnet_uint8_t *buffer, fnet_size_t buffer_size, fnet_bool_t *eof, fnet_uint32_t *cookie);
108 
109 /**************************************************************************/
128 {
135 };
138 #endif /* FNET_CFG_HTTP && FNET_CFG_HTTP_SSI */
139 
140 #endif
fnet_size_t(* fnet_http_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_return_t
General return codes, used by most of API functions.
Definition: fnet_stdlib.h:90
SSI callback function table.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
fnet_char_t * name
SSI command name.
fnet_http_ssi_handle_t handle
Pointer to the SSI parameters handler. It's optional.
fnet_http_ssi_send_t send
Pointer to the SSI include function. This function actually inserts dynamic content to an existing HT...
fnet_bool_t
Boolean type.
Definition: fnet_stdlib.h:81
char fnet_char_t
Type representing the charecter.
Definition: fnet_stdlib.h:76
fnet_return_t(* fnet_http_ssi_handle_t)(fnet_char_t *query, fnet_uint32_t *cookie)
Callback function prototype of the SSI parameters handler.
Definition: fnet_http_ssi.h:70

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