root/cherokee/trunk/cherokee/common.h

Revision 1131, 2.0 kB (checked in by alo, 8 months ago)

--

Line 
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* Cherokee
4  *
5  * Authors:
6  *      Alvaro Lopez Ortega <alvaro@alobbs.com>
7  *
8  * Copyright (C) 2001-2008 Alvaro Lopez Ortega
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of version 2 of the GNU General Public
12  * License as published by the Free Software Foundation.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22  * USA
23  */
24
25 #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION)
26 # error "Only <cherokee/cherokee.h> can be included directly, this file may disappear or change contents."
27 #endif
28
29
30 #ifndef CHEROKEE_COMMON_H
31 #define CHEROKEE_COMMON_H
32
33 #include <cherokee/macros.h>
34
35
36 CHEROKEE_BEGIN_DECLS
37
38 typedef enum {
39         false = 0,
40         true  = 1
41 } cherokee_boolean_t;
42
43 typedef enum {
44         ret_no_sys          = -4,
45         ret_nomem           = -3,
46         ret_deny            = -2,
47         ret_error           = -1,
48         ret_ok              =  0,
49         ret_eof             =  1,
50         ret_eof_have_data   =  2,
51         ret_not_found       =  3,
52         ret_file_not_found  =  4,
53         ret_eagain          =  5,
54         ret_ok_and_sent     =  6
55 } ret_t;
56
57 typedef unsigned int   crc_t;
58
59 typedef int                 cint_t;
60 typedef char                cchar_t;
61 typedef short               cshort_t;
62 typedef long                clong_t;
63 typedef long long           cllong_t;
64
65 typedef unsigned int        cuint_t;
66 typedef unsigned char       cuchar_t;
67 typedef unsigned short      cushort_t;
68 typedef unsigned long       culong_t;
69 typedef unsigned long long  cullong_t;
70
71 typedef void (*cherokee_func_free_t) (void *);
72
73 CHEROKEE_END_DECLS
74
75 #endif /* CHEROKEE_COMMON_H */
Note: See TracBrowser for help on using the browser.