root/trunk/wifidog/src/httpd_priv.h @ 79

Revision 79, 2.3 KB (checked in by alexcv, 9 years ago)

Merged in libhttpd

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/*
2** Copyright (c) 2002  Hughes Technologies Pty Ltd.  All rights
3** reserved.
4**
5** Terms under which this software may be used or copied are
6** provided in the  specific license associated with this product.
7**
8** Hughes Technologies disclaims all warranties with regard to this
9** software, including all implied warranties of merchantability and
10** fitness, in no event shall Hughes Technologies be liable for any
11** special, indirect or consequential damages or any damages whatsoever
12** resulting from loss of use, data or profits, whether in an action of
13** contract, negligence or other tortious action, arising out of or in
14** connection with the use or performance of this software.
15**
16**
17** Original Id: httpd_priv.h,v 1.5 2002/11/25 02:15:51 bambi Exp
18**
19*/
20
21/* $Header$ */
22/** @internal
23  @file httpd_priv.h
24  @brief HTTP Server Non exported declaration
25  @author Originally by Hughes Technologies Pty Ltd.
26  @author Copyright (C) 2004 Alexandre Carmel-Veilleux <acv@acv.ca>
27 */
28
29/*
30**  libhttpd Private Header File
31*/
32
33
34/***********************************************************************
35** Standard header preamble.  Ensure singular inclusion, setup for
36** function prototypes and c++ inclusion
37*/
38
39#ifndef LIB_HTTPD_PRIV_H
40
41#define LIB_HTTPD_H_PRIV 1
42
43#define LEVEL_NOTICE    "notice"
44#define LEVEL_ERROR     "error"
45
46char * _httpd_unescape(char*);
47char *_httpd_escape(char*);
48char _httpd_from_hex (char);
49
50
51void _httpd_catFile(httpd*, char*);
52void _httpd_send403(httpd*);
53void _httpd_send404(httpd*);
54void _httpd_sendText(httpd*, char*);
55void _httpd_sendFile(httpd*, char*);
56void _httpd_sendStatic(httpd*, char*);
57void _httpd_sendHeaders(httpd*, int, int);
58void _httpd_sanitiseUrl(char*);
59void _httpd_freeVariables(httpVar*);
60void _httpd_formatTimeString(httpd*, char*, int);
61void _httpd_storeData(httpd*, char*);
62void _httpd_writeAccessLog(httpd*);
63void _httpd_writeErrorLog(httpd*, char*, char*);
64
65
66int _httpd_net_read(int, char*, int);
67int _httpd_net_write(int, char*, int);
68int _httpd_readBuf(httpd*, char*, int);
69int _httpd_readChar(httpd*, char*);
70int _httpd_readLine(httpd*, char*, int);
71int _httpd_checkLastModified(httpd*, int);
72int _httpd_sendDirectoryEntry(httpd*, httpContent*, char*);
73
74httpContent *_httpd_findContentEntry(httpd*, httpDir*, char*);
75httpDir *_httpd_findContentDir(httpd*, char*, int);
76
77#endif  /* LIB_HTTPD_PRIV_H */
Note: See TracBrowser for help on using the browser.