diff options
Diffstat (limited to 'frontends/windows/gui.h')
-rw-r--r-- | frontends/windows/gui.h | 42 |
1 files changed, 37 insertions, 5 deletions
diff --git a/frontends/windows/gui.h b/frontends/windows/gui.h index efbf02924..957280ae4 100644 --- a/frontends/windows/gui.h +++ b/frontends/windows/gui.h @@ -17,16 +17,27 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef _NETSURF_WINDOWS_GUI_H_ -#define _NETSURF_WINDOWS_GUI_H_ +#ifndef NETSURF_WINDOWS_GUI_H +#define NETSURF_WINDOWS_GUI_H struct gui_window; -struct gui_clipboard_table *win32_clipboard_table; +/** + * win32 application instance handle. + * + * This handle is set in the main windows entry point. + */ extern HINSTANCE hinst; -/** Directory where all configuration files are held. */ -extern char *nsw32_config_home; +/** + * path to where all user config files are held. + */ +extern char *G_config_path; + +/** + * resource search path vector. + */ +extern char **G_resource_pathv; /* bounding box */ typedef struct bbox_s { @@ -56,4 +67,25 @@ void win32_set_quit(bool q); */ nserror win32_warning(const char *warning, const char *detail); +/** + * Warn the user of an unexpected nserror. + * + * \param[in] error The nserror to report + * \param[in] detail Additional text to be displayed or NULL. + * \return NSERROR_OK on success or error code if there was a + * faliure displaying the message to the user. + */ +nserror win32_report_nserror(nserror error, const char *detail); + +/** + * add a modeless dialog to the special handling list + */ +nserror nsw32_add_dialog(HWND hwndDlg); + +/** + * remove a modeless dialog from the special handling list + */ +nserror nsw32_del_dialog(HWND hwndDlg); + + #endif |