ELinks 0.18.0
hooks.c File Reference
#include "elinks.h"
#include "cache/cache.h"
#include "main/event.h"
#include "protocol/uri.h"
#include "scripting/perl/core.h"
#include "scripting/perl/hooks.h"
#include "session/location.h"
#include "session/session.h"
#include "util/string.h"
Include dependency graph for hooks.c:

Macros

#define my_XPUSHs(s, slen)   XPUSHs(sv_2mortal(newSVpvn(s, slen)))
 

Functions

static void do_script_hook_goto_url (struct session *ses, char **url)
 
static enum evhook_status script_hook_goto_url (va_list ap, void *data)
 
static void do_script_hook_follow_url (char **url)
 
static enum evhook_status script_hook_follow_url (va_list ap, void *data)
 
static void do_script_hook_pre_format_html (char *url, struct cache_entry *cached, struct fragment *fragment)
 
static enum evhook_status script_hook_pre_format_html (va_list ap, void *data)
 
static void do_script_hook_get_proxy (char **new_proxy_url, char *url)
 
static enum evhook_status script_hook_get_proxy (va_list ap, void *data)
 
static void do_script_hook_quit (void)
 
static enum evhook_status script_hook_quit (va_list ap, void *data)
 

Variables

struct event_hook_info perl_scripting_hooks []
 

Macro Definition Documentation

◆ my_XPUSHs

#define my_XPUSHs ( s,
slen )   XPUSHs(sv_2mortal(newSVpvn(s, slen)))

Function Documentation

◆ do_script_hook_follow_url()

static void do_script_hook_follow_url ( char ** url)
inlinestatic

◆ do_script_hook_get_proxy()

static void do_script_hook_get_proxy ( char ** new_proxy_url,
char * url )
inlinestatic

◆ do_script_hook_goto_url()

static void do_script_hook_goto_url ( struct session * ses,
char ** url )
inlinestatic

◆ do_script_hook_pre_format_html()

static void do_script_hook_pre_format_html ( char * url,
struct cache_entry * cached,
struct fragment * fragment )
inlinestatic

◆ do_script_hook_quit()

static void do_script_hook_quit ( void )
inlinestatic

◆ script_hook_follow_url()

static enum evhook_status script_hook_follow_url ( va_list ap,
void * data )
static

◆ script_hook_get_proxy()

static enum evhook_status script_hook_get_proxy ( va_list ap,
void * data )
static

◆ script_hook_goto_url()

static enum evhook_status script_hook_goto_url ( va_list ap,
void * data )
static

◆ script_hook_pre_format_html()

static enum evhook_status script_hook_pre_format_html ( va_list ap,
void * data )
static

◆ script_hook_quit()

static enum evhook_status script_hook_quit ( va_list ap,
void * data )
static

Variable Documentation

◆ perl_scripting_hooks

struct event_hook_info perl_scripting_hooks[]
Initial value:
= {
{ "goto-url", 0, script_hook_goto_url, {NULL} },
{ "follow-url", 0, script_hook_follow_url, {NULL} },
{ "pre-format-html", 0, script_hook_pre_format_html, {NULL} },
{ "get-proxy", 0, script_hook_get_proxy, {NULL} },
{ "quit", 0, script_hook_quit, {NULL} },
}
#define NULL
Definition explodename.c:35
static enum evhook_status script_hook_goto_url(va_list ap, void *data)
Definition hooks.c:56
static enum evhook_status script_hook_pre_format_html(va_list ap, void *data)
Definition hooks.c:118
static enum evhook_status script_hook_get_proxy(va_list ap, void *data)
Definition hooks.c:152
static enum evhook_status script_hook_quit(va_list ap, void *data)
Definition hooks.c:175
static enum evhook_status script_hook_follow_url(va_list ap, void *data)
Definition hooks.c:87
#define NULL_EVENT_HOOK_INFO
Definition event.h:88