2005-12-18 12:47:54 -05:00
|
|
|
#ifndef EL__SCRIPTING_SMJS_ELINKS_OBJECT_H
|
|
|
|
#define EL__SCRIPTING_SMJS_ELINKS_OBJECT_H
|
|
|
|
|
2008-07-16 05:32:24 -04:00
|
|
|
#include "ecmascript/spidermonkey-shared.h"
|
2005-12-18 12:47:54 -05:00
|
|
|
|
2005-12-23 22:49:06 -05:00
|
|
|
/* This is the all-powerful elinks object through which all client scripts
|
|
|
|
* will interface with ELinks. */
|
2005-12-23 22:48:57 -05:00
|
|
|
extern JSObject *smjs_elinks_object;
|
|
|
|
|
2005-12-23 22:47:34 -05:00
|
|
|
/* Initialise elinks_object. */
|
|
|
|
void smjs_init_elinks_object(void);
|
|
|
|
|
|
|
|
/* Invoke elinks.<method> with the given arguments and put the return value
|
|
|
|
* into *rval. */
|
2021-01-02 10:20:27 -05:00
|
|
|
bool smjs_invoke_elinks_object_method(char *method, int argc, JS::Value *argv, JS::MutableHandleValue rval);
|
2005-12-18 12:47:54 -05:00
|
|
|
|
|
|
|
#endif
|