#include "utils.h"
#define UH_LIMIT_CLIENTS 64
-#define UH_LIMIT_HEADERS 64
#define __enum_header(_name) HDR_##_name,
#define __blobmsg_header(_name) [HDR_##_name] = { .name = #_name, .type = BLOBMSG_TYPE_STRING },
struct auth_realm {
struct list_head list;
- char *path;
- char *user;
- char *pass;
+ const char *path;
+ const char *user;
+ const char *pass;
};
enum http_method {
enum http_method method;
enum http_version version;
int redirect_status;
- char *url;
+ const char *url;
const struct auth_realm *realm;
};
struct interpreter {
struct list_head list;
- char *path;
- char *ext;
+ const char *path;
+ const char *ext;
};
struct path_info {
const char *name;
const char *info;
const char *query;
- int redirected;
+ bool redirected;
struct stat stat;
- struct interpreter *ip;
+ const struct interpreter *ip;
};
struct env_var {