NetSurf
Functions | Variables
misc.h File Reference
#include <exec/types.h>
#include "utils/errors.h"
Include dependency graph for misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nserror amiga_warn_user (const char *warning, const char *detail)
 Warn the user of an event. More...
 
char * translate_escape_chars (const char *s)
 returns a string with escape chars translated and string converted to local charset (based on remove_underscores from utils.c) More...
 
void ami_misc_fatal_error (const char *message)
 
int32 amiga_warn_user_multi (const char *body, const char *opt1, const char *opt2, struct Window *win)
 

Variables

struct gui_file_tableamiga_file_table
 

Function Documentation

◆ ami_misc_fatal_error()

void ami_misc_fatal_error ( const char *  message)

Definition at line 73 of file misc.c.

References ami_misc_req(), and TDRIMAGE_ERROR.

Referenced by ami_gui_get_user_dir(), ami_gui_resources_open(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ amiga_warn_user()

nserror amiga_warn_user ( const char *  warning,
const char *  detail 
)

Warn the user of an event.

Parameters
[in]warningA warning looked up in the message translation table
[in]detailAdditional text to be displayed or NULL.
Returns
NSERROR_OK on success or error code if there was a faliure displaying the message to the user.

Definition at line 79 of file misc.c.

References ami_misc_req(), ami_utf8_easy(), ASPrintf(), messages_get(), NSERROR_OK, and TDRIMAGE_WARNING.

Referenced by ami_bitmap_get_generic(), ami_cw_mouse_pos(), ami_cw_redraw(), ami_cw_redraw_rect(), ami_cw_window_size(), ami_do_redraw(), ami_do_redraw_limits(), ami_file_open(), ami_font_open(), ami_gui_event(), ami_gui_new_blank_tab(), ami_gui_scroll_internal(), ami_handle_applib(), ami_handle_appmsg(), ami_mouse_to_ns_coords(), ami_ns_rect_to_ibox(), ami_plot_ra_alloc(), ami_print(), ami_refresh_window(), ami_switch_tab(), ami_text_box_at_point(), ami_theme_init(), ami_throbber_update(), gui_download_window_done(), gui_download_window_error(), gui_init2(), gui_window_create(), gui_window_get_dimensions(), gui_window_place_caret(), gui_window_set_icon(), gui_window_set_scroll(), gui_window_stop_throbber(), gui_window_update_extent(), HOOKF(), and RXHOOKF().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ amiga_warn_user_multi()

int32 amiga_warn_user_multi ( const char *  body,
const char *  opt1,
const char *  opt2,
struct Window *  win 
)

Definition at line 93 of file misc.c.

References ami_utf8_easy(), ASPrintf(), messages_get(), and TDRIMAGE_WARNING.

Referenced by ami_download_check_overwrite(), and ami_gui_close_tabs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ translate_escape_chars()

char * translate_escape_chars ( const char *  s)

returns a string with escape chars translated and string converted to local charset (based on remove_underscores from utils.c)

Definition at line 246 of file misc.c.

References ami_utf8_easy().

Referenced by gui_window_create().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ amiga_file_table

struct gui_file_table* amiga_file_table
extern

Definition at line 463 of file misc.c.

Referenced by main().