-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathreq.h
41 lines (32 loc) · 965 Bytes
/
req.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* A data structure that persists across requests. */
typedef struct _VirguleReq VirguleReq;
struct _VirguleReq {
virgule_private_t *priv;
request_rec *r;
Buffer *b; /* main buffer */
Buffer *tb; /* template buffer */
Buffer *hb; /* header buffer */
Db *db;
char *uri;
const char *u; /* authenticated username */
char *args;
// int sitemap_rendered; /* TRUE if the sitemap has already been rendered */
char *prefix; /* Prefix of <Location> directive, to be added to links */
apr_table_t *render_data;
};
int
virgule_send_response (VirguleReq *vr);
apr_table_t *
virgule_get_args_table (VirguleReq *vr);
char *
virgule_req_get_tmetric (VirguleReq *vr);
const char *
virgule_req_get_tmetric_level (VirguleReq *vr, const char *u);
int
virgule_req_ok_to_post (VirguleReq *vr);
int
virgule_req_ok_to_reply (VirguleReq *vr);
int
virgule_req_ok_to_create_project (VirguleReq *vr);
int
virgule_req_ok_to_syndicate_blog (VirguleReq *vr);