|
ELinks 0.18.0
|
#include "elinks.h"#include "config/options.h"#include "intl/libintl.h"#include "main/event.h"#include "main/module.h"#include "protocol/rewrite/rewrite.h"#include "protocol/uri.h"#include "session/location.h"#include "session/session.h"#include "util/string.h"
Macros | |
| #define | INIT_OPT_DUMB_PREFIX(prefix, uri) INIT_OPT_STRING("protocol.rewrite.dumb", NULL, prefix, OPT_ZERO, uri, NULL) |
| #define | INIT_OPT_SMART_PREFIX(prefix, uri) INIT_OPT_STRING("protocol.rewrite.smart", NULL, prefix, OPT_ZERO, uri, NULL) |
| #define | get_opt_rewrite(which) uri_rewrite_options[(which)].option |
| #define | get_dumb_enable() get_opt_rewrite(URI_REWRITE_ENABLE_DUMB).value.number |
| #define | get_smart_enable() get_opt_rewrite(URI_REWRITE_ENABLE_SMART).value.number |
| #define | MAX_URI_ARGS 10 |
Functions | |
| static struct option * | get_prefix_tree (enum uri_rewrite_option tree) |
| static char * | rewrite_uri (char *url, struct uri *current_uri, const char *arg) |
| static char * | get_uri_rewrite_prefix (enum uri_rewrite_type type, char *url) |
| static enum evhook_status | goto_url_hook (va_list ap, void *data) |
Variables | |
| static union option_info | uri_rewrite_options [] |
| struct event_hook_info | uri_rewrite_hooks [] |
| struct module | uri_rewrite_module |
| #define get_dumb_enable | ( | ) | get_opt_rewrite(URI_REWRITE_ENABLE_DUMB).value.number |
| #define get_opt_rewrite | ( | which | ) | uri_rewrite_options[(which)].option |
| #define get_smart_enable | ( | ) | get_opt_rewrite(URI_REWRITE_ENABLE_SMART).value.number |
| #define INIT_OPT_DUMB_PREFIX | ( | prefix, | |
| uri | |||
| ) | INIT_OPT_STRING("protocol.rewrite.dumb", NULL, prefix, OPT_ZERO, uri, NULL) |
| #define INIT_OPT_SMART_PREFIX | ( | prefix, | |
| uri | |||
| ) | INIT_OPT_STRING("protocol.rewrite.smart", NULL, prefix, OPT_ZERO, uri, NULL) |
| #define MAX_URI_ARGS 10 |
| enum uri_rewrite_option |
| enum uri_rewrite_type |
|
inlinestatic |
|
static |
|
static |
|
static |
| struct event_hook_info uri_rewrite_hooks[] |
| struct module uri_rewrite_module |
|
static |