NetSurf
misc.h
Go to the documentation of this file.
1/*
2 * Copyright 2010 Chris Young <chris@unsatisfactorysoftware.co.uk>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef AMIGA_MISC_H
20#define AMIGA_MISC_H
21
22#include <exec/types.h>
23
24#include "utils/errors.h"
25
26extern struct gui_file_table *amiga_file_table;
27struct Window;
28
29/**
30 * Warn the user of an event.
31 *
32 * \param[in] warning A warning looked up in the message translation table
33 * \param[in] detail Additional text to be displayed or NULL.
34 * \return NSERROR_OK on success or error code if there was a
35 * faliure displaying the message to the user.
36 */
37nserror amiga_warn_user(const char *warning, const char *detail);
38char *translate_escape_chars(const char *s);
39void ami_misc_fatal_error(const char *message);
40int32 amiga_warn_user_multi(const char *body,
41 const char *opt1, const char *opt2, struct Window *win);
42#endif
43
Error codes.
nserror
Enumeration of error codes.
Definition: errors.h:29
void ami_misc_fatal_error(const char *message)
Definition: misc.c:73
int32 amiga_warn_user_multi(const char *body, const char *opt1, const char *opt2, struct Window *win)
Definition: misc.c:93
nserror amiga_warn_user(const char *warning, const char *detail)
Warn the user of an event.
Definition: misc.c:79
char * translate_escape_chars(const char *s)
returns a string with escape chars translated and string converted to local charset (based on remove_...
Definition: misc.c:246
struct gui_file_table * amiga_file_table
Definition: misc.c:463
int32_t int32
Definition: os3support.h:183
/brief function table for file and filename operations.
Definition: file.h:50