aboutsummaryrefslogtreecommitdiff
path: root/src/gethandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gethandler.h')
-rw-r--r--src/gethandler.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/gethandler.h b/src/gethandler.h
deleted file mode 100644
index dc0b66cb..00000000
--- a/src/gethandler.h
+++ /dev/null
@@ -1,60 +0,0 @@
1/* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved.
2 *
3 * See the LICENSE file
4 *
5 * The origin of this software must not be misrepresented, either by
6 * explicit claim or by omission. Since few users ever read sources,
7 * credits must appear in the documentation.
8 *
9 * date: Sat Mar 30 14:44:42 GMT 2002
10 *
11 *
12 * --
13 *
14 */
15
16
17#ifndef _GETHANDLER_H_
18#define _GETHANDLER_H_
19
20#ifdef HAVE_CONFIG_H
21#include "config.h"
22#endif
23#include <stdio.h>
24
25
26#include "memory.h"
27#include "error.h"
28
29
30#define MATCHMAX 200
31
32//#define WS_LOCAL 0x1
33#define WS_DYNVAR 0x8
34#define WS_USELEN 0x10
35
36
37/*********************
38 * get handler types *
39 *********************/
40#define GH_FUNCTION 0 // new on 0.5.2
41#define GH_DIRECTORY 1 // new on 0.5.2
42#define GH_CGI 2 // new on 0.5.2 (just the flag)
43
44
45struct gethandler {
46 char *str;
47 int type; // new on 0.5.2 types
48 union hdl_u{ // changed on 0.5.3 named union (Hilobok Andrew (han@km.if.ua) said that wasn't compiling on FreeBSD)
49 void (*func)(); // it is a function
50 char *path; // it is a path (dir or cgi)
51 }hdl;
52 int flag;
53 struct gethandler *next;
54};
55
56struct gethandler *__ILWS_init_handler_list();
57int __ILWS_add_handler(struct gethandler *,const char *,void (*func)(),char *, int,int);
58void __ILWS_delete_handler_list(struct gethandler *);
59
60#endif