src/server/daemon/request.c

changeset 82
740cfd9dd443
parent 61
c858850f3d3a
child 84
afd57ce39ec9
equal deleted inserted replaced
81:d25825f37967 82:740cfd9dd443
28 28
29 #include "request.h" 29 #include "request.h"
30 30
31 #include "../util/pblock.h" 31 #include "../util/pblock.h"
32 #include "httprequest.h" 32 #include "httprequest.h"
33 #include "../public/vfs.h"
33 34
34 35
35 /* Code from req.cpp */ 36 /* Code from req.cpp */
36 /* TODO: fremden Code durch eigenen ersetzen */ 37 /* TODO: fremden Code durch eigenen ersetzen */
37 38
105 } 106 }
106 107
107 const VirtualServer* request_get_vs(Request *rq) { 108 const VirtualServer* request_get_vs(Request *rq) {
108 return ((NSAPIRequest*)rq)->vs; 109 return ((NSAPIRequest*)rq)->vs;
109 } 110 }
111
112 struct stat* request_stat_path(const char *path, Request *rq) {
113 // TODO: reimplement with vfs support
114 // TODO: use pool
115 struct stat *s = malloc(sizeof(struct stat));
116 if(stat(path, s)) {
117 return NULL;
118 }
119 // TODO: statpath and staterror
120 rq->finfo = s;
121 return s;
122 }
123
124 void request_free(Request *rq) {
125 // TODO: implement
126 }
127
128 Request* request_restart_internal(const char *uri, Request *rq) {
129 // TODO: implement
130 return NULL;
131 }
132
133
134 char* servact_translate_uri(char *uri, Session *sn) {
135 // TODO: implement
136 return NULL;
137 }

mercurial