mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
c74ddb29c5
Add terminal_class, which defines a JSObject wrapper for struct terminal. Add terminal_array_class, which defines a JSObject wrapper for accessing the "terminals" linked list of struct terminal. Add session_array_class, which defines a JSObject wrapper for accessing the tabs (sessions) of a terminal. Add pointers from struct terminal to the terminal_class object and the session_array_class object. Add terminal_props and terminal_get_property for terminal_class. Add terminal_finalize, which clears the pointers between a struct terminal and the JSObject wrapper in question. Add smjs_init_terminal_interface, which creates a terminal_array_class instance and assigns it to the "terminal" property on the "elinks" object. Call smjs_init_terminal_interface from smjs_init_elinks_object. Add smjs_get_terminal_object and smjs_get_session_array_object to get the wrapper objects for a given struct terminal, and add smjs_get_terminal_array_object to get a terminal_array_class object. Add smjs_detach_terminal_object and smjs_detach_session_array_object, which clear the pointers between a given struct terminal and its JSObject wrappers. Add terminal_array_get_property for terminal_array_class. Add session_array_get_property for session_array_class.
11 lines
218 B
C
11 lines
218 B
C
#ifndef EL__SCRIPTING_SMJS_TERMINAL_OBJECT_H
|
|
#define EL__SCRIPTING_SMJS_TERMINAL_OBJECT_H
|
|
|
|
struct terminal;
|
|
|
|
JSObject *smjs_get_terminal_object(struct terminal *term);
|
|
|
|
void smjs_init_terminal_interface(void);
|
|
|
|
#endif
|