-
Notifications
You must be signed in to change notification settings - Fork 271
/
auth-request-var-expand.h
39 lines (33 loc) · 1.41 KB
/
auth-request-var-expand.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
#ifndef AUTH_REQUEST_VAR_EXPAND_H
#define AUTH_REQUEST_VAR_EXPAND_H
typedef const char *
auth_request_escape_func_t(const char *string,
const struct auth_request *auth_request);
#define AUTH_REQUEST_VAR_TAB_USER_IDX 0
#define AUTH_REQUEST_VAR_TAB_USERNAME_IDX 1
#define AUTH_REQUEST_VAR_TAB_DOMAIN_IDX 2
#define AUTH_REQUEST_VAR_TAB_COUNT 33
extern const struct var_expand_table
auth_request_var_expand_static_tab[AUTH_REQUEST_VAR_TAB_COUNT+1];
const struct var_expand_table *
auth_request_get_var_expand_table(const struct auth_request *auth_request,
auth_request_escape_func_t *escape_func)
ATTR_NULL(2);
struct var_expand_table *
auth_request_get_var_expand_table_full(const struct auth_request *auth_request,
auth_request_escape_func_t *escape_func,
unsigned int *count) ATTR_NULL(2);
void auth_request_var_expand(string_t *dest, const char *str,
struct auth_request *auth_request,
auth_request_escape_func_t *escape_func);
void auth_request_var_expand_with_table(string_t *dest, const char *str,
struct auth_request *auth_request,
const struct var_expand_table *table,
auth_request_escape_func_t *escape_func);
const char *
t_auth_request_var_expand(const char *str,
struct auth_request *auth_request,
auth_request_escape_func_t *escape_func);
const char *auth_request_str_escape(const char *string,
const struct auth_request *request);
#endif