summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-05-04 15:08:36 +0100
committerVincent Sanders <vince@kyllikki.org>2016-05-04 15:08:36 +0100
commitd6e520da921e4a933318f1a70f0b2ff0c30dd2ea (patch)
treec29e2a783d8b2a083272fab18527e38da4558146
parent9406645650932769567d306fccf011d60955e96d (diff)
downloadnetsurf-d6e520da921e4a933318f1a70f0b2ff0c30dd2ea.tar.gz
netsurf-d6e520da921e4a933318f1a70f0b2ff0c30dd2ea.tar.bz2
improve plotter documentation header for monkey frontend
-rw-r--r--monkey/browser.c3
-rw-r--r--monkey/plot.c4
-rw-r--r--monkey/plot.h25
3 files changed, 28 insertions, 4 deletions
diff --git a/monkey/browser.c b/monkey/browser.c
index 4eef62538..dfd2dcf6c 100644
--- a/monkey/browser.c
+++ b/monkey/browser.c
@@ -28,6 +28,7 @@
#include "desktop/mouse.h"
#include "desktop/gui_window.h"
#include "desktop/browser.h"
+#include "desktop/plotters.h"
#include "content/hlcache.h"
#include "monkey/browser.h"
@@ -423,7 +424,7 @@ monkey_window_handle_redraw(int argc, char **argv)
struct redraw_context ctx = {
.interactive = true,
.background_images = true,
- .plot = &monkey_plotters
+ .plot = monkey_plotters
};
if (argc != 3 && argc != 7) {
diff --git a/monkey/plot.c b/monkey/plot.c
index bd5b0a18f..50f812480 100644
--- a/monkey/plot.c
+++ b/monkey/plot.c
@@ -95,7 +95,7 @@ monkey_plot_clip(const struct rect *clip)
return true;
}
-const struct plotter_table monkey_plotters = {
+static const struct plotter_table plotters = {
.clip = monkey_plot_clip,
.arc = monkey_plot_arc,
.disc = monkey_plot_disc,
@@ -107,3 +107,5 @@ const struct plotter_table monkey_plotters = {
.text = monkey_plot_text,
.option_knockout = true,
};
+
+const struct plotter_table* monkey_plotters = &plotters;
diff --git a/monkey/plot.h b/monkey/plot.h
index 7be3d699b..3632bcf4a 100644
--- a/monkey/plot.h
+++ b/monkey/plot.h
@@ -1,5 +1,26 @@
+/*
+ * Copyright 2016 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/plotters.h"
+#ifndef NS_MONKEY_PLOT_H
+#define NS_MONKEY_PLOT_H
-extern const struct plotter_table monkey_plotters;
+struct plotter_table;
+extern const struct plotter_table *monkey_plotters;
+
+#endif