aboutsummaryrefslogtreecommitdiff
path: root/src/clientinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/clientinfo.h')
-rw-r--r--src/clientinfo.h43
1 files changed, 14 insertions, 29 deletions
diff --git a/src/clientinfo.h b/src/clientinfo.h
index 6712f5ba..c3315bbd 100644
--- a/src/clientinfo.h
+++ b/src/clientinfo.h
@@ -16,23 +16,13 @@
16#ifndef _CLIENTINFO_H_ 16#ifndef _CLIENTINFO_H_
17#define _CLIENTINFO_H_ 17#define _CLIENTINFO_H_
18 18
19#ifdef HAVE_CONFIG_H
20#include "config.h"
21#endif
22
23#include <stdio.h> 19#include <stdio.h>
24#include <fcntl.h> 20#include <fcntl.h>
25#include <string.h> 21#include <string.h>
26
27#include "outstream.h"
28#include "client.h" 22#include "client.h"
29#include "utils.h" 23#include "utils.h"
30#include "memory.h" 24#include "memory.h"
31#include "server.h"
32#include "error.h"
33 25
34
35
36/* 26/*
37 * Next's structs are redudant but it is an case of logic (spell) 27 * Next's structs are redudant but it is an case of logic (spell)
38 */ 28 */
@@ -70,8 +60,7 @@ struct _Cookie {
70 struct _Cookie *next; 60 struct _Cookie *next;
71}; 61};
72 62
73 63struct ClientInfo {
74extern struct ClientInfo {
75 int outfd; 64 int outfd;
76 char *inetname; 65 char *inetname;
77 char *request; 66 char *request;
@@ -83,7 +72,6 @@ extern struct ClientInfo {
83 char *(*Query)(char *); 72 char *(*Query)(char *);
84 char *(*Post)(char *); 73 char *(*Post)(char *);
85 char *(*Cookie)(char *); // TODO 74 char *(*Cookie)(char *); // TODO
86 char *(*Conf)(const char *,const char *); // new on 0.5.0
87 struct _MultiPart (*MultiPart)(char *); 75 struct _MultiPart (*MultiPart)(char *);
88 // not necessary for web_server.h 76 // not necessary for web_server.h
89 char *QueryString; 77 char *QueryString;
@@ -95,24 +83,21 @@ extern struct ClientInfo {
95 struct _Post *PostList; // Not necessary for web_server.h 83 struct _Post *PostList; // Not necessary for web_server.h
96 struct _MultiPart *MultiPartList; // Not necessary for web_server.h 84 struct _MultiPart *MultiPartList; // Not necessary for web_server.h
97 struct _Cookie *CookieList; // Not necessary for web_server.h 85 struct _Cookie *CookieList; // Not necessary for web_server.h
98} *ClientInfo; //tochange 86};
99 87
100 88
101void __ILWS_init_clientinfo(); 89void __ILWS_init_clientinfo(struct ClientInfo *ClientInfo);
102void __ILWS_free_clientinfo(); 90void __ILWS_free_clientinfo(struct ClientInfo *ClientInfo);
103char *__ILWS_clientinfo_getauthuser(); 91char *__ILWS_clientinfo_getquerystring(struct ClientInfo *ClientInfo);
104char *__ILWS_clientinfo_getauthpass(); 92char *__ILWS_clientinfo_getpostdata(struct ClientInfo *ClientInfo);
105char *__ILWS_clientinfo_getquerystring(); 93char *__ILWS_clientinfo_getcookiestring(struct ClientInfo *ClientInfo);
106char *__ILWS_clientinfo_getpostdata(); 94char *__ILWS_clientinfo_getmethod(struct ClientInfo *ClientInfo);
107char *__ILWS_clientinfo_getcookiestring(); 95char *__ILWS_clientinfo_getreqname(struct ClientInfo *ClientInfo);
108char *__ILWS_clientinfo_getmethod(); 96char *__ILWS_Header(struct ClientInfo *ClientInfo, char *);
109char *__ILWS_clientinfo_getreqname(); 97char *__ILWS_Query(struct ClientInfo *ClientInfo, char *);
110char *__ILWS_Header(char *); 98char *__ILWS_Post(struct ClientInfo *ClientInfo, char *);
111char *__ILWS_Query(char *); 99struct _MultiPart __ILWS_MultiPart(struct ClientInfo *ClientInfo, char *);
112char *__ILWS_Post(char *); 100char *__ILWS_Cookie(struct ClientInfo *ClientInfo, char *);
113struct _MultiPart __ILWS_MultiPart(char *);
114char *__ILWS_Cookie(char *);
115char *__ILWS_Conf(const char *,const char *);
116 101
117#endif 102#endif
118 103