ELinks 0.16.1.1
ecmascript.h File Reference
#include "main/module.h"
#include "main/timer.h"
#include "util/time.h"
Include dependency graph for ecmascript.h:

Data Structures

struct  ecmascript_string_list_item
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_put_interpreter (struct ecmascript_interpreter *interpreter)
int ecmascript_get_interpreter_count (void)
void ecmascript_detach_form_view (struct form_view *fv)
void ecmascript_detach_form_state (struct form_state *fs)
void ecmascript_moved_form_state (struct form_state *fs)
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)
int ecmascript_eval_boolback (struct ecmascript_interpreter *interpreter, struct string *code)
void ecmascript_protocol_handler (struct session *ses, struct uri *uri)
void ecmascript_timeout_dialog (struct terminal *term, int max_exec_time)
void ecmascript_set_action (char **action, char *string)
timer_id_T ecmascript_set_timeout (struct ecmascript_interpreter *interpreter, char *code, int timeout)
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 * document_parse (struct document *document)
void free_document (void *doc)
void location_goto (struct document_view *doc_view, char *url)
void location_goto_const (struct document_view *doc_view, const char *url)
struct stringadd_to_ecmascript_string_list (struct ecmascript_string_list_item list *list, const char *string, int length, int element_offset)
void free_ecmascript_string_list (struct ecmascript_string_list_item list *list)

Variables

char * console_error_filename
char * console_log_filename
char * local_storage_filename
int local_storage_ready
struct module ecmascript_module

Function Documentation

◆ add_to_ecmascript_string_list()

struct string * add_to_ecmascript_string_list ( struct ecmascript_string_list_item list * list,
const char * string,
int length,
int element_offset )

◆ check_for_rerender()

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

◆ document_parse()

void * document_parse ( struct document * document)

◆ ecmascript_check_url()

int ecmascript_check_url ( char * url,
char * frame )

◆ ecmascript_detach_form_state()

void ecmascript_detach_form_state ( struct form_state * fs)

◆ ecmascript_detach_form_view()

void ecmascript_detach_form_view ( struct form_view * fv)

◆ ecmascript_eval()

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

◆ ecmascript_eval_boolback()

int ecmascript_eval_boolback ( struct ecmascript_interpreter * interpreter,
struct string * code )

◆ 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_get_interpreter_count()

int ecmascript_get_interpreter_count ( void )

◆ ecmascript_moved_form_state()

void ecmascript_moved_form_state ( struct form_state * fs)

◆ ecmascript_protocol_handler()

void ecmascript_protocol_handler ( struct session * ses,
struct uri * uri )

◆ ecmascript_put_interpreter()

void ecmascript_put_interpreter ( struct ecmascript_interpreter * interpreter)

◆ 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()

timer_id_T ecmascript_set_timeout ( struct ecmascript_interpreter * interpreter,
char * code,
int timeout )

◆ ecmascript_timeout_dialog()

void ecmascript_timeout_dialog ( struct terminal * term,
int max_exec_time )

◆ free_document()

void free_document ( void * doc)

◆ free_ecmascript_string_list()

void free_ecmascript_string_list ( struct ecmascript_string_list_item list * list)

◆ get_ecmascript_enable()

int get_ecmascript_enable ( struct ecmascript_interpreter * interpreter)

◆ location_goto()

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

◆ location_goto_const()

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

◆ 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

◆ ecmascript_module

struct module ecmascript_module
extern

◆ local_storage_filename

char* local_storage_filename
extern

◆ local_storage_ready

int local_storage_ready
extern