ssi.h
Go to the documentation of this file.
1 /**
2  * @file ssi.h
3  * @brief SSI (Server Side Includes)
4  *
5  * @section License
6  *
7  * Copyright (C) 2010-2018 Oryx Embedded SARL. All rights reserved.
8  *
9  * This file is part of CycloneTCP Open.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software Foundation,
23  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24  *
25  * @author Oryx Embedded SARL (www.oryx-embedded.com)
26  * @version 1.9.0
27  **/
28 
29 #ifndef _SSI_H
30 #define _SSI_H
31 
32 //Dependencies
33 #include "http/http_server.h"
34 
35 //C++ guard
36 #ifdef __cplusplus
37  extern "C" {
38 #endif
39 
40 //SSI related functions
41 error_t ssiExecuteScript(HttpConnection *connection, const char_t *uri, uint_t level);
42 
44  const char_t *tag, size_t length, const char_t *uri, uint_t level);
45 
47  const char_t *tag, size_t length, const char_t *uri, uint_t level);
48 
49 error_t ssiProcessEchoCommand(HttpConnection *connection, const char_t *tag, size_t length);
50 error_t ssiProcessExecCommand(HttpConnection *connection, const char_t *tag, size_t length);
51 
52 error_t ssiSearchTag(const char_t *s, size_t sLen, const char_t *tag, size_t tagLen, uint_t *pos);
53 
54 //C++ guard
55 #ifdef __cplusplus
56  }
57 #endif
58 
59 #endif
char char_t
Definition: compiler_port.h:41
error_t ssiProcessEchoCommand(HttpConnection *connection, const char_t *tag, size_t length)
Process SSI echo directive.
Definition: ssi.c:596
HTTP server (HyperText Transfer Protocol)
uint8_t level
Definition: tls.h:1696
error_t ssiExecuteScript(HttpConnection *connection, const char_t *uri, uint_t level)
Execute SSI script.
Definition: ssi.c:65
error_t ssiProcessCommand(HttpConnection *connection, const char_t *tag, size_t length, const char_t *uri, uint_t level)
Process SSI directive.
Definition: ssi.c:362
error_t
Error codes.
Definition: error.h:40
unsigned int uint_t
Definition: compiler_port.h:43
#define HttpConnection
Definition: http_server.h:296
error_t ssiSearchTag(const char_t *s, size_t sLen, const char_t *tag, size_t tagLen, uint_t *pos)
Search a string for a given tag.
Definition: ssi.c:829
error_t ssiProcessIncludeCommand(HttpConnection *connection, const char_t *tag, size_t length, const char_t *uri, uint_t level)
Process SSI include directive.
Definition: ssi.c:420
error_t ssiProcessExecCommand(HttpConnection *connection, const char_t *tag, size_t length)
Process SSI exec directive.
Definition: ssi.c:755
uint8_t length
Definition: dtls_misc.h:140