-
Notifications
You must be signed in to change notification settings - Fork 320
Expand file tree
/
Copy pathhttpd_priv.h
More file actions
83 lines (71 loc) · 2.96 KB
/
Copy pathhttpd_priv.h
File metadata and controls
83 lines (71 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
** Copyright (c) 2002 Hughes Technologies Pty Ltd. All rights
** reserved.
**
** Terms under which this software may be used or copied are
** provided in the specific license associated with this product.
**
** Hughes Technologies disclaims all warranties with regard to this
** software, including all implied warranties of merchantability and
** fitness, in no event shall Hughes Technologies be liable for any
** special, indirect or consequential damages or any damages whatsoever
** resulting from loss of use, data or profits, whether in an action of
** contract, negligence or other tortious action, arising out of or in
** connection with the use or performance of this software.
**
**
** $Id$
**
*/
/*
** libhttpd Private Header File
*/
/***********************************************************************
** Standard header preamble. Ensure singular inclusion, setup for
** function prototypes and c++ inclusion
*/
#ifndef LIB_HTTPD_PRIV_H
#define LIB_HTTPD_H_PRIV 1
#if !defined(__ANSI_PROTO)
#if defined(_WIN32) || defined(__STDC__) || defined(__cplusplus)
#define __ANSI_PROTO(x) x
#else
#define __ANSI_PROTO(x) ()
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define LEVEL_NOTICE "notice"
#define LEVEL_ERROR "error"
char *_httpd_unescape __ANSI_PROTO((char *));
char *_httpd_escape __ANSI_PROTO((const char *));
char _httpd_from_hex __ANSI_PROTO((char));
void _httpd_catFile __ANSI_PROTO((request *, const char *));
void _httpd_send403 __ANSI_PROTO((httpd *, request *));
void _httpd_send404 __ANSI_PROTO((httpd *, request *));
void _httpd_send304 __ANSI_PROTO((httpd *, request *));
void _httpd_sendText __ANSI_PROTO((request *, char *));
void _httpd_sendFile __ANSI_PROTO((httpd *, request *, char *));
void _httpd_sendStatic __ANSI_PROTO((httpd *, request *, char *));
void _httpd_sendHeaders __ANSI_PROTO((request *, int, int);
)
void _httpd_sanitiseUrl __ANSI_PROTO((char *));
void _httpd_freeVariables __ANSI_PROTO((httpVar *));
void _httpd_formatTimeString __ANSI_PROTO((char *, int));
void _httpd_storeData __ANSI_PROTO((request *, char *));
void _httpd_writeAccessLog __ANSI_PROTO((httpd *, request *));
void _httpd_writeErrorLog __ANSI_PROTO((httpd *, request *, char *, char *));
int _httpd_net_read __ANSI_PROTO((int, char *, int));
int _httpd_net_write __ANSI_PROTO((int, char *, int));
int _httpd_readBuf __ANSI_PROTO((request *, char *, int));
int _httpd_readChar __ANSI_PROTO((request *, char *));
int _httpd_readLine __ANSI_PROTO((request *, char *, int));
int _httpd_checkLastModified __ANSI_PROTO((request *, int));
int _httpd_sendDirectoryEntry __ANSI_PROTO((httpd *, request * r, httpContent *, char *));
httpContent *_httpd_findContentEntry __ANSI_PROTO((request *, httpDir *, char *));
httpDir *_httpd_findContentDir __ANSI_PROTO((httpd *, char *, int));
#ifdef __cplusplus
}
#endif
#endif /* LIB_HTTPD_PRIV_H */