ELinks 0.18.0
ecmascript.h File Reference
#include <stdbool.h>
#include "main/module.h"
#include "main/timer.h"
#include "util/string.h"
#include "util/time.h"
Include dependency graph for ecmascript.h:

Data Structures

struct  ecmascript_interpreter
struct  ecmascript_timeout
struct  delayed_goto

Functions

int ecmascript_check_url (char *url, char *frame)
void ecmascript_free_urls (struct module *module)
struct ecmascript_interpreterecmascript_get_interpreter (struct view_state *vs)
void ecmascript_reset_state (struct view_state *vs)
void ecmascript_eval (struct ecmascript_interpreter *interpreter, struct string *code, struct string *ret, int element_offset)
char * ecmascript_eval_stringback (struct ecmascript_interpreter *interpreter, struct string *code)
void ecmascript_timeout_dialog (struct terminal *term, int max_exec_time)
void ecmascript_set_action (char **action, char *string)
struct ecmascript_timeoutecmascript_set_timeout (void *ctx, char *code, int timeout, int timeout_next)
int get_ecmascript_enable (struct ecmascript_interpreter *interpreter)
void check_for_rerender (struct ecmascript_interpreter *interpreter, const char *text)
void toggle_ecmascript (struct session *ses)
void location_goto (struct document_view *doc_view, char *url, int reload)
void location_goto_const (struct document_view *doc_view, const char *url, int reload)

Variables

char * console_error_filename
char * console_log_filename
char * console_warn_filename
char * local_storage_filename
int local_storage_ready

Function Documentation

◆ check_for_rerender()

void check_for_rerender ( struct ecmascript_interpreter * interpreter,
const char * text )

◆ ecmascript_check_url()

int ecmascript_check_url ( char * url,
char * frame )

◆ ecmascript_eval()

void ecmascript_eval ( struct ecmascript_interpreter * interpreter,
struct string * code,
struct string * ret,
int element_offset )

◆ ecmascript_eval_stringback()

char * ecmascript_eval_stringback ( struct ecmascript_interpreter * interpreter,
struct string * code )

◆ ecmascript_free_urls()

void ecmascript_free_urls ( struct module * module)

◆ ecmascript_get_interpreter()

struct ecmascript_interpreter * ecmascript_get_interpreter ( struct view_state * vs)

◆ ecmascript_reset_state()

void ecmascript_reset_state ( struct view_state * vs)

◆ ecmascript_set_action()

void ecmascript_set_action ( char ** action,
char * string )

◆ ecmascript_set_timeout()

struct ecmascript_timeout * ecmascript_set_timeout ( void * ctx,
char * code,
int timeout,
int timeout_next )

◆ ecmascript_timeout_dialog()

void ecmascript_timeout_dialog ( struct terminal * term,
int max_exec_time )

◆ get_ecmascript_enable()

int get_ecmascript_enable ( struct ecmascript_interpreter * interpreter)

◆ location_goto()

void location_goto ( struct document_view * doc_view,
char * url,
int reload )

◆ location_goto_const()

void location_goto_const ( struct document_view * doc_view,
const char * url,
int reload )

◆ toggle_ecmascript()

void toggle_ecmascript ( struct session * ses)

Variable Documentation

◆ console_error_filename

char* console_error_filename
extern

◆ console_log_filename

char* console_log_filename
extern

◆ console_warn_filename

char* console_warn_filename
extern

◆ local_storage_filename

char* local_storage_filename
extern

◆ local_storage_ready

int local_storage_ready
extern