ELinks 0.18.0
hooks.c File Reference
#include <libguile.h>
#include "elinks.h"
#include "cache/cache.h"
#include "main/event.h"
#include "protocol/uri.h"
#include "scripting/guile/hooks.h"
#include "session/session.h"
#include "util/string.h"
Include dependency graph for hooks.c:

Functions

static SCM internal_module (void)
 
static SCM error_handler (void *data, SCM tag, SCM throw_args)
 
static SCM get_guile_hook_do (void *data)
 
static SCM get_guile_hook (const char *hook)
 
static enum evhook_status script_hook_goto_url (va_list ap, void *data)
 
static enum evhook_status script_hook_follow_url (va_list ap, void *data)
 
static enum evhook_status script_hook_pre_format_html (va_list ap, void *data)
 
static enum evhook_status script_hook_get_proxy (va_list ap, void *data)
 
static enum evhook_status script_hook_quit (va_list ap, void *data)
 

Variables

struct event_hook_info guile_scripting_hooks []
 

Function Documentation

◆ error_handler()

static SCM error_handler ( void * data,
SCM tag,
SCM throw_args )
static

◆ get_guile_hook()

static SCM get_guile_hook ( const char * hook)
static

◆ get_guile_hook_do()

static SCM get_guile_hook_do ( void * data)
static

◆ internal_module()

static SCM internal_module ( void )
static

◆ 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

◆ guile_scripting_hooks

struct event_hook_info guile_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