ELinks 0.18.0
Data Structures | Typedefs | Functions | Variables
ecmascript-c.h File Reference
#include "document/document.h"
#include "js/libdom/dom.h"
#include "main/module.h"
#include "terminal/kbd.h"
#include "util/lists.h"
Include dependency graph for ecmascript-c.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  selector_node
 
struct  class_string
 
struct  el_dom_html_collection
 The html_collection structure. More...
 

Typedefs

typedef bool(* dom_callback_is_in_collection) (struct dom_node *node, void *ctx)
 

Functions

int ecmascript_get_interpreter_count (void)
 
void ecmascript_put_interpreter (struct ecmascript_interpreter *interpreter)
 
void toggle_ecmascript (struct session *ses)
 
void ecmascript_protocol_handler (struct session *ses, struct uri *uri)
 
void check_for_snippets (struct view_state *vs, struct document_options *options, struct document *document)
 
void check_events_for_element (struct ecmascript_interpreter *interpreter, dom_node *element, struct term_event *ev)
 
void ecmascript_reset_state (struct view_state *vs)
 
int ecmascript_current_link_evhook (struct document_view *doc_view, enum script_event_hook_type type)
 
int ecmascript_eval_boolback (struct ecmascript_interpreter *interpreter, struct string *code)
 
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 * walk_tree_query (dom_node *node, const char *selector, int depth)
 
void walk_tree_query_append (dom_node *node, const char *selector, int depth, struct selector_node list *result_list)
 
void * get_elements_by_class_name (dom_html_document *doc, dom_node *node, const char *classes)
 
void camel_to_html (const char *camel, struct string *result)
 
void ecmascript_walk_tree (struct string *buf, void *nod, bool start, bool toSortAttrs)
 
void free_el_dom_collection (void *ctx)
 
void save_integrity_in_map (struct uri *uri, char *integrity)
 
char * get_integrity_from_map (struct uri *uri)
 

Variables

struct module ecmascript_module
 

Typedef Documentation

◆ dom_callback_is_in_collection

typedef bool(* dom_callback_is_in_collection) (struct dom_node *node, void *ctx)

Function Documentation

◆ camel_to_html()

void camel_to_html ( const char *  camel,
struct string *  result 
)

◆ check_events_for_element()

void check_events_for_element ( struct ecmascript_interpreter *  interpreter,
dom_node *  element,
struct term_event *  ev 
)

◆ check_for_snippets()

void check_for_snippets ( struct view_state *  vs,
struct document_options *  options,
struct document *  document 
)

◆ ecmascript_current_link_evhook()

int ecmascript_current_link_evhook ( struct document_view *  doc_view,
enum script_event_hook_type  type 
)

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

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

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

void ecmascript_walk_tree ( struct string *  buf,
void *  nod,
bool  start,
bool  toSortAttrs 
)

◆ free_el_dom_collection()

void free_el_dom_collection ( void *  ctx)

◆ get_elements_by_class_name()

void * get_elements_by_class_name ( dom_html_document *  doc,
dom_node *  node,
const char *  classes 
)

◆ get_integrity_from_map()

char * get_integrity_from_map ( struct uri *  uri)

◆ save_integrity_in_map()

void save_integrity_in_map ( struct uri *  uri,
char *  integrity 
)

◆ toggle_ecmascript()

void toggle_ecmascript ( struct session *  ses)

◆ walk_tree_query()

void * walk_tree_query ( dom_node *  node,
const char *  selector,
int  depth 
)

◆ walk_tree_query_append()

void walk_tree_query_append ( dom_node *  node,
const char *  selector,
int  depth,
struct selector_node list *  result_list 
)

Variable Documentation

◆ ecmascript_module

struct module ecmascript_module
extern