diff -r d25825f37967 -r 740cfd9dd443 src/server/daemon/request.c --- a/src/server/daemon/request.c Fri Jun 28 14:52:35 2013 +0200 +++ b/src/server/daemon/request.c Sun Jun 30 15:11:48 2013 +0200 @@ -30,6 +30,7 @@ #include "../util/pblock.h" #include "httprequest.h" +#include "../public/vfs.h" /* Code from req.cpp */ @@ -107,3 +108,30 @@ const VirtualServer* request_get_vs(Request *rq) { return ((NSAPIRequest*)rq)->vs; } + +struct stat* request_stat_path(const char *path, Request *rq) { + // TODO: reimplement with vfs support + // TODO: use pool + struct stat *s = malloc(sizeof(struct stat)); + if(stat(path, s)) { + return NULL; + } + // TODO: statpath and staterror + rq->finfo = s; + return s; +} + +void request_free(Request *rq) { + // TODO: implement +} + +Request* request_restart_internal(const char *uri, Request *rq) { + // TODO: implement + return NULL; +} + + +char* servact_translate_uri(char *uri, Session *sn) { + // TODO: implement + return NULL; +}