}
-void uh_cgi_request(struct client *cl, struct http_request *req, struct uh_path_info *pi)
+void uh_cgi_request(struct client *cl, struct http_request *req, struct path_info *pi)
{
int i, hdroff, bufoff;
int hdrlen = 0;
#include <linux/limits.h>
void uh_cgi_request(
- struct client *cl, struct http_request *req, struct uh_path_info *pi
+ struct client *cl, struct http_request *req, struct path_info *pi
);
#endif
return strcmp(e->d_name, ".") ? 1 : 0;
}
-static void uh_file_dirlist(struct client *cl, struct http_request *req, struct uh_path_info *pi)
+static void uh_file_dirlist(struct client *cl, struct http_request *req, struct path_info *pi)
{
int i, count;
char filename[PATH_MAX];
}
-void uh_file_request(struct client *cl, struct http_request *req, struct uh_path_info *pi)
+void uh_file_request(struct client *cl, struct http_request *req, struct path_info *pi)
{
int fd, rlen;
char buf[UH_LIMIT_MSGHEAD];
};
void uh_file_request(
- struct client *cl, struct http_request *req, struct uh_path_info *pi
+ struct client *cl, struct http_request *req, struct path_info *pi
);
#endif
}
-struct uh_path_info * uh_path_lookup(struct client *cl, const char *url)
+struct path_info * uh_path_lookup(struct client *cl, const char *url)
{
static char path_phys[PATH_MAX];
static char path_info[PATH_MAX];
- static struct uh_path_info p;
+ static struct path_info p;
char buffer[UH_LIMIT_MSGHEAD];
char *docroot = cl->server->conf->docroot;
#define foreach_header(i, h) \
for( i = 0; (i + 1) < (sizeof(h) / sizeof(h[0])) && h[i]; i += 2 )
-struct uh_path_info {
+struct path_info {
char *root;
- char *wdir;
char *phys;
char *name;
char *info;
int uh_urlencode(char *buf, int blen, const char *src, int slen);
int uh_path_normalize(char *buf, int blen, const char *src, int slen);
-struct uh_path_info * uh_path_lookup(struct client *cl, const char *url);
+struct path_info * uh_path_lookup(struct client *cl, const char *url);
struct listener * uh_listener_add(int sock, struct config *conf);
struct listener * uh_listener_lookup(int sock);
/* working structs */
struct addrinfo hints;
struct http_request *req;
- struct uh_path_info *pin;
+ struct path_info *pin;
struct client *cl;
struct sigaction sa;
struct config conf;