diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2014-01-16 13:24:14 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2014-01-16 13:24:14 +0000 |
commit | a2247a75a3dab9d583617299a88d0e76c923f83b (patch) | |
tree | d74ec3acc0d024d10e8dd5dce14c80516bf489af /desktop | |
parent | d47fed45245ddcecfb69d1e951ce627bdb6a44ff (diff) | |
download | netsurf-a2247a75a3dab9d583617299a88d0e76c923f83b.tar.gz netsurf-a2247a75a3dab9d583617299a88d0e76c923f83b.tar.bz2 |
cleanup copyright headers and some doc comments
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/gui.h | 9 | ||||
-rw-r--r-- | desktop/gui_factory.c | 23 | ||||
-rw-r--r-- | desktop/gui_factory.h | 9 |
3 files changed, 30 insertions, 11 deletions
diff --git a/desktop/gui.h b/desktop/gui.h index cd116e9c1..5252737f9 100644 --- a/desktop/gui.h +++ b/desktop/gui.h @@ -1,6 +1,5 @@ /* - * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net> - * Copyright 2004 James Bursa <bursa@users.sourceforge.net> + * Copyright 2014 Vincent Sanders <vince@netsurf-browser.org> * * This file is part of NetSurf, http://www.netsurf-browser.org/ * @@ -26,14 +25,8 @@ #include <stdbool.h> -#include <libwapcaplet/libwapcaplet.h> -#include <libcss/libcss.h> - -#include "utils/config.h" #include "content/hlcache.h" #include "desktop/download.h" -#include "desktop/mouse.h" -#include "desktop/search.h" #include "utils/errors.h" typedef enum { diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c index 1bd683df7..104f4906d 100644 --- a/desktop/gui_factory.c +++ b/desktop/gui_factory.c @@ -1,12 +1,29 @@ +/* + * Copyright 2014 Vincent Sanders <vince@netsurf-browser.org> + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ #include "desktop/gui.h" #include "desktop/gui_factory.h" +/** The global GUI interface table */ struct gui_table *guit = NULL; - static void gui_default_window_set_title(struct gui_window *g, const char *title) { } @@ -254,6 +271,7 @@ static void gui_default_set_clipboard(const char *buffer, size_t length, { } +/** verify clipboard table is valid */ static nserror verify_clipboard_register(struct gui_clipboard_table *gct) { /* check table is present */ @@ -310,7 +328,7 @@ static void gui_default_401login_open(nsurl *url, const char *realm, cb(false, cbpw); } - +/** verify browser table is valid */ static nserror verify_browser_register(struct gui_browser_table *gbt) { /* check table is present */ @@ -369,6 +387,7 @@ static struct gui_clipboard_table default_clipboard_table = { .set = gui_default_set_clipboard, }; +/* exported interface documented in desktop/gui_factory.h */ nserror gui_factory_register(struct gui_table *gt) { nserror err; diff --git a/desktop/gui_factory.h b/desktop/gui_factory.h index 50b5eb31e..dc94b3a16 100644 --- a/desktop/gui_factory.h +++ b/desktop/gui_factory.h @@ -25,8 +25,15 @@ #include "desktop/gui.h" -extern struct gui_table *guit; /* the gui vtable */ +/** The global operation table */ +extern struct gui_table *guit; +/** register and verify global operation table + * + * @param gt The global table to register + * @return NSERROR_OK on success or error code on faliure. On faliure + * global table will not be initialised + */ nserror gui_factory_register(struct gui_table *gt); #endif |