From a2247a75a3dab9d583617299a88d0e76c923f83b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 16 Jan 2014 13:24:14 +0000 Subject: cleanup copyright headers and some doc comments --- desktop/gui_factory.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'desktop/gui_factory.c') 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 + * + * 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 . + */ #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; -- cgit v1.2.3