summaryrefslogtreecommitdiff
path: root/desktop/gui_factory.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2014-01-16 13:24:14 +0000
committerVincent Sanders <vince@netsurf-browser.org>2014-01-16 13:24:14 +0000
commita2247a75a3dab9d583617299a88d0e76c923f83b (patch)
treed74ec3acc0d024d10e8dd5dce14c80516bf489af /desktop/gui_factory.c
parentd47fed45245ddcecfb69d1e951ce627bdb6a44ff (diff)
downloadnetsurf-a2247a75a3dab9d583617299a88d0e76c923f83b.tar.gz
netsurf-a2247a75a3dab9d583617299a88d0e76c923f83b.tar.bz2
cleanup copyright headers and some doc comments
Diffstat (limited to 'desktop/gui_factory.c')
-rw-r--r--desktop/gui_factory.c23
1 files changed, 21 insertions, 2 deletions
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;