NetSurf
|
#include "amiga/os3support.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <proto/intuition.h>
#include <proto/dos.h>
#include <proto/exec.h>
#include <proto/clicktab.h>
#include <gadgets/clicktab.h>
#include <reaction/reaction_macros.h>
#include "utils/log.h"
#include "utils/nsoption.h"
#include "utils/nsurl.h"
#include "netsurf/content.h"
#include "netsurf/browser_window.h"
#include "desktop/version.h"
#include "amiga/arexx.h"
#include "amiga/gui.h"
#include "amiga/download.h"
#include "amiga/hotlist.h"
#include "amiga/libs.h"
#include "amiga/misc.h"
#include "amiga/theme.h"
#include "amiga/memory.h"
Go to the source code of this file.
Macros | |
#define | RXHOOKF(func) static ASM VOID func(REG(a0, struct ARexxCmd* cmd), REG(a1, struct RexxMsg* msg)) |
Enumerations | |
enum | { RX_OPEN =0 , RX_QUIT , RX_TOFRONT , RX_GETURL , RX_GETTITLE , RX_VERSION , RX_SAVE , RX_PUBSCREEN , RX_BACK , RX_FORWARD , RX_HOME , RX_RELOAD , RX_WINDOWS , RX_ACTIVE , RX_CLOSE , RX_HOTLIST , RX_SLABSTATS , RX_EXEC } |
Functions | |
RXHOOKF (rx_open) | |
RXHOOKF (rx_quit) | |
RXHOOKF (rx_tofront) | |
RXHOOKF (rx_geturl) | |
RXHOOKF (rx_gettitle) | |
RXHOOKF (rx_version) | |
RXHOOKF (rx_save) | |
RXHOOKF (rx_pubscreen) | |
RXHOOKF (rx_back) | |
RXHOOKF (rx_forward) | |
RXHOOKF (rx_home) | |
RXHOOKF (rx_reload) | |
RXHOOKF (rx_windows) | |
RXHOOKF (rx_active) | |
RXHOOKF (rx_close) | |
RXHOOKF (rx_hotlist) | |
RXHOOKF (rx_slabstats) | |
RXHOOKF (rx_exec) | |
bool | ami_arexx_init (ULONG *rxsig) |
void | ami_arexx_handle (void) |
static void | ami_arexx_command (const char *cmd, const char *port) |
void | ami_arexx_self (const char *cmd) |
void | ami_arexx_execute (char *script) |
void | ami_arexx_cleanup (void) |
static struct gui_window * | ami_find_tab_gwin (struct gui_window_2 *gwin, int tab) |
static int | ami_find_tab_bw (struct gui_window_2 *gwin, struct browser_window *bw) |
static struct gui_window * | ami_find_tab (int window, int tab) |
Variables | |
const char *const | verarexx |
const char *const | wt_revid |
static Object * | arexx_obj = NULL |
STATIC char | result [100] |
STATIC struct ARexxCmd | Commands [] |
anonymous enum |
void ami_arexx_cleanup | ( | void | ) |
Definition at line 185 of file arexx.c.
References arexx_obj.
Referenced by gui_quit().
|
static |
Definition at line 161 of file arexx.c.
References arexx_obj, and IDoMethod.
Referenced by ami_arexx_execute(), and ami_arexx_self().
void ami_arexx_execute | ( | char * | script | ) |
Definition at line 172 of file arexx.c.
References ami_arexx_command(), DevNameFromLock, DN_FULLPATH, and NSLOG.
Referenced by HOOKF(), and main().
void ami_arexx_handle | ( | void | ) |
Definition at line 156 of file arexx.c.
References arexx_obj.
Referenced by ami_get_msg().
bool ami_arexx_init | ( | ULONG * | rxsig | ) |
void ami_arexx_self | ( | const char * | cmd | ) |
Definition at line 167 of file arexx.c.
References ami_arexx_command().
Referenced by gui_init2().
|
static |
Definition at line 238 of file arexx.c.
References ami_find_tab_gwin(), ami_gui_get_window_list(), AMINS_WINDOW, GetHead(), GetSucc(), IsMinListEmpty, nsObject::objstruct, nsObject::Type, and window_list.
Referenced by RXHOOKF().
|
static |
Definition at line 214 of file arexx.c.
References ami_gui2_get_tab_list(), ami_gui2_get_tabs(), ami_gui_get_browser_window(), gui_window::bw, GetHead(), GetSucc(), and tabs.
Referenced by RXHOOKF().
|
static |
Definition at line 190 of file arexx.c.
References ami_gui2_get_gui_window(), ami_gui2_get_tab_list(), ami_gui2_get_tabs(), GetHead(), GetSucc(), gui_window::tab, and tabs.
Referenced by ami_find_tab().
RXHOOKF | ( | rx_active | ) |
Definition at line 608 of file arexx.c.
References ami_find_tab_bw(), ami_gui_get_active_gw(), ami_gui_get_browser_window(), ami_gui_get_window_list(), AMINS_WINDOW, GetHead(), GetSucc(), IS_CURRENT_GW, IsMinListEmpty, nsObject::objstruct, result, gui_window::tab, nsObject::Type, gui_window::window, and window_list.
RXHOOKF | ( | rx_back | ) |
Definition at line 520 of file arexx.c.
References ami_find_tab(), ami_gui_get_active_gw(), ami_gui_get_gui_window_2(), and ami_gui_history().
RXHOOKF | ( | rx_close | ) |
Definition at line 652 of file arexx.c.
References ami_find_tab(), ami_gui_close_window(), ami_gui_get_active_gw(), ami_gui_get_browser_window(), ami_gui_get_gui_window_2(), and browser_window_destroy().
RXHOOKF | ( | rx_exec | ) |
Definition at line 680 of file arexx.c.
References ami_find_tab(), ami_gui_get_active_gw(), ami_gui_get_browser_window(), browser_window_exec(), NSLOG, and nsoption_bool.
RXHOOKF | ( | rx_forward | ) |
Definition at line 532 of file arexx.c.
References ami_find_tab(), ami_gui_get_active_gw(), ami_gui_get_gui_window_2(), and ami_gui_history().
RXHOOKF | ( | rx_gettitle | ) |
Definition at line 414 of file arexx.c.
References ami_find_tab(), ami_gui2_get_tabs(), ami_gui_get_active_gw(), ami_gui_get_gui_window_2(), ami_gui_get_tab_title(), ami_gui_get_win_title(), and result.
RXHOOKF | ( | rx_geturl | ) |
Definition at line 393 of file arexx.c.
References ami_find_tab(), ami_gui_get_active_gw(), ami_gui_get_browser_window(), browser_window_access_url(), nsurl_access(), and result.
RXHOOKF | ( | rx_home | ) |
Definition at line 545 of file arexx.c.
References ami_find_tab(), ami_gui_get_active_gw(), ami_gui_get_browser_window(), amiga_warn_user(), browser_window_navigate(), BW_NAVIGATE_HISTORY, NSERROR_OK, nsoption_charp, nsurl_create(), nsurl_unref(), and gui_window::url.
RXHOOKF | ( | rx_hotlist | ) |
Definition at line 669 of file arexx.c.
References ami_hotlist_close(), and ami_hotlist_present().
RXHOOKF | ( | rx_open | ) |
Definition at line 264 of file arexx.c.
References ami_find_tab(), ami_gui_get_active_gw(), ami_gui_get_browser_window(), ami_gui_get_download_list(), ami_gui_get_gui_window_2(), ami_gui_switch_to_new_tab(), amiga_warn_user(), browser_window_create(), browser_window_navigate(), BW_CREATE_HISTORY, BW_CREATE_TAB, BW_NAVIGATE_DOWNLOAD, BW_NAVIGATE_HISTORY, dlnode::filename, dlnode::node, NSERROR_OK, nsurl_create(), nsurl_unref(), and gui_window::url.
RXHOOKF | ( | rx_pubscreen | ) |
Definition at line 504 of file arexx.c.
References nsoption_charp, and result.
RXHOOKF | ( | rx_quit | ) |
Definition at line 381 of file arexx.c.
References ami_quit_netsurf().
RXHOOKF | ( | rx_reload | ) |
Definition at line 571 of file arexx.c.
References ami_find_tab(), ami_gui_get_active_gw(), ami_gui_get_browser_window(), and browser_window_reload().
RXHOOKF | ( | rx_save | ) |
Definition at line 350 of file arexx.c.
References ami_find_tab(), ami_gui_get_active_gw(), ami_gui_get_browser_window(), ami_gui_get_gui_window_2(), ami_reset_pointer(), ami_set_pointer(), browser_window_access_url(), browser_window_get_content(), content_get_source_data(), FClose, FOpen, GUI_POINTER_WAIT, and nsurl_access().
RXHOOKF | ( | rx_slabstats | ) |
Definition at line 707 of file arexx.c.
References ami_memory_slab_dump().
RXHOOKF | ( | rx_tofront | ) |
Definition at line 387 of file arexx.c.
References ami_gui_get_screen().
RXHOOKF | ( | rx_version | ) |
Definition at line 438 of file arexx.c.
References netsurf_version, netsurf_version_major, netsurf_version_minor, result, verarexx, and wt_revid.
RXHOOKF | ( | rx_windows | ) |
Definition at line 593 of file arexx.c.
References ami_gui_count_windows(), result, tabs, and gui_window::window.
|
static |
Definition at line 76 of file arexx.c.
Referenced by ami_arexx_cleanup(), ami_arexx_command(), ami_arexx_handle(), and ami_arexx_init().
STATIC struct ARexxCmd Commands[] |
Definition at line 104 of file arexx.c.
Referenced by ami_arexx_init().
STATIC char result[100] |
Definition at line 77 of file arexx.c.
Referenced by ami_cw_event(), ami_download_window_event(), ami_gui_event(), ami_gui_opts_event(), ami_pageinfo_event(), ami_print_event(), ami_search_event(), ami_utf8_codesets(), box_extract_link(), box_get_attribute(), browser_window_up_available(), check_duplicates(), duk_bi_string_prototype_includes(), fetch_curl_done(), fetch_multipart_data_clone(), fire_dom_event(), fire_dom_keyboard_event(), fire_generic_dom_event(), gif_create(), gui_default_utf8(), hlcache_handle_clone(), hlcache_handle_get_url(), hlcache_handle_retrieve(), html_exec(), html_redraw(), http__parse_challenge(), http__parse_directive(), http_parse_cache_control(), http_parse_content_disposition(), http_parse_content_type(), http_parse_strict_transport_security(), http_parse_www_authenticate(), layout_flex__distribute_free_main(), llcache_handle_clone(), llcache_handle_retrieve(), llcache_hsts_transform_url(), llcache_object_new(), llcache_object_retrieve(), llcache_object_retrieve_from_cache(), nsbeos_bitmap_generate_pretile(), nscss_create(), nscss_parse_colour(), nsgtk_download_dialog_show(), nsico_create(), nsws_window_urlbar_callback(), parse_max_age(), parse_named_colour(), ro_gui_theme_open(), RXHOOKF(), save_as_text(), save_complete(), save_complete_save_html_object(), save_complete_save_stylesheet(), SPrintfN(), timeval_subtract(), url_escape(), url_unescape(), utf8_convert(), utf8_from_enc(), utf8_from_local(), utf8_from_local_encoding(), utf8_to_enc(), utf8_to_font_encoding(), utf8_to_html(), utf8_to_local(), utf8_to_local_encoding(), and VSPrintfN().
|
extern |
Referenced by RXHOOKF().
|
extern |
Referenced by RXHOOKF().