Subversion Repositories Tewi

Rev

Rev 128 | Rev 156 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 128 Rev 140
Line 1... Line 1...
1
/* $Id: tw_config.h 128 2024-09-23 10:19:19Z nishi $ */
1
/* $Id: tw_config.h 140 2024-09-23 11:31:18Z nishi $ */
2
 
2
 
3
#ifndef __TW_CONFIG_H__
3
#ifndef __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
4
#define __TW_CONFIG_H__
5
 
5
 
-
 
6
#ifdef __cplusplus
-
 
7
extern "C" {
-
 
8
#endif
-
 
9
 
6
#include "tw_http.h"
10
#include "tw_http.h"
7
 
11
 
8
#include <stdint.h>
12
#include <stdint.h>
9
#include <stdbool.h>
13
#include <stdbool.h>
10
 
14
 
Line 89... Line 93...
89
void tw_config_init(void);
93
void tw_config_init(void);
90
int tw_config_read(const char* path);
94
int tw_config_read(const char* path);
91
struct tw_config_entry* tw_vhost_match(const char* name, int port);
95
struct tw_config_entry* tw_vhost_match(const char* name, int port);
92
bool tw_permission_allowed(const char* path, SOCKADDR addr, struct tw_http_request req, struct tw_config_entry* vhost);
96
bool tw_permission_allowed(const char* path, SOCKADDR addr, struct tw_http_request req, struct tw_config_entry* vhost);
93
 
97
 
-
 
98
#ifdef __cplusplus
-
 
99
}
-
 
100
#endif
-
 
101
 
94
#endif
102
#endif