root/trunk/wifidog/libhttpd/httpd_priv.h

Revision 1345, 2.7 kB (checked in by acv, 9 months ago)

Merged in path #452

  • 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 ** $Id$
18 **
19 */
20
21 /*
22 **  libhttpd Private Header File
23 */
24
25
26 /***********************************************************************
27 ** Standard header preamble.  Ensure singular inclusion, setup for
28 ** function prototypes and c++ inclusion
29 */
30
31 #ifndef LIB_HTTPD_PRIV_H
32
33 #define LIB_HTTPD_H_PRIV 1
34
35 #if !defined(__ANSI_PROTO)
36 #if defined(_WIN32) || defined(__STDC__) || defined(__cplusplus)
37 #  define __ANSI_PROTO(x)       x
38 #else
39 #  define __ANSI_PROTO(x)       ()
40 #endif
41 #endif
42
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46
47
48 #define LEVEL_NOTICE    "notice"
49 #define LEVEL_ERROR     "error"
50
51 char * _httpd_unescape __ANSI_PROTO((char*));
52 char *_httpd_escape __ANSI_PROTO((const char*));
53 char _httpd_from_hex  __ANSI_PROTO((char));
54
55
56 void _httpd_catFile __ANSI_PROTO((request*, char*));
57 void _httpd_send403 __ANSI_PROTO((request*));
58 void _httpd_send404 __ANSI_PROTO((httpd*, request*));
59 void _httpd_sendText __ANSI_PROTO((request*, char*));
60 void _httpd_sendFile __ANSI_PROTO((httpd*, request*, char*));
61 void _httpd_sendStatic __ANSI_PROTO((httpd*, request *, char*));
62 void _httpd_sendHeaders __ANSI_PROTO((request*, int, int);)
63 void _httpd_sanitiseUrl __ANSI_PROTO((char*));
64 void _httpd_freeVariables __ANSI_PROTO((httpVar*));
65 void _httpd_formatTimeString __ANSI_PROTO((char*, int));
66 void _httpd_storeData __ANSI_PROTO((request*, char*));
67 void _httpd_writeAccessLog __ANSI_PROTO((httpd*, request*));
68 void _httpd_writeErrorLog __ANSI_PROTO((httpd*, request *, char*, char*));
69
70
71 int _httpd_net_read __ANSI_PROTO((int, char*, int));
72 int _httpd_net_write __ANSI_PROTO((int, char*, int));
73 int _httpd_readBuf __ANSI_PROTO((request*, char*, int));
74 int _httpd_readChar __ANSI_PROTO((request*, char*));
75 int _httpd_readLine __ANSI_PROTO((request*, char*, int));
76 int _httpd_checkLastModified __ANSI_PROTO((request*, int));
77 int _httpd_sendDirectoryEntry __ANSI_PROTO((httpd*, request *r, httpContent*,
78                         char*));
79
80 httpContent *_httpd_findContentEntry __ANSI_PROTO((request*, httpDir*, char*));
81 httpDir *_httpd_findContentDir __ANSI_PROTO((httpd*, char*, int));
82
83 #endif  /* LIB_HTTPD_PRIV_H */
Note: See TracBrowser for help on using the browser.