1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
elinks/src/ecmascript/ecmascript-c.h
Witold Filipczyk 424466740c [document] renderer.cpp -> renderer.c
Moved ecmascript code to ecmascript-c.cpp
2023-11-26 19:47:59 +01:00

31 lines
702 B
C

#ifndef EL__ECMASCRIPT_ECMASCRIPT_C_H
#define EL__ECMASCRIPT_ECMASCRIPT_C_H
#include "main/module.h"
#ifdef __cplusplus
extern "C" {
#endif
struct document_options;
struct docuemnt;
struct session;
struct uri;
struct view_state;
int ecmascript_get_interpreter_count(void);
void toggle_ecmascript(struct session *ses);
/* Takes line with the syntax javascript:<ecmascript code>. Activated when user
* follows a link with this synstax. */
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);
extern struct module ecmascript_module;
#ifdef __cplusplus
}
#endif
#endif