summaryrefslogtreecommitdiff
path: root/beos/window.cpp
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-05-03 19:45:25 +0100
committerVincent Sanders <vince@kyllikki.org>2016-05-03 19:45:25 +0100
commit246ab6d9ff7504cdc7bf88efe1d4aca987b5c095 (patch)
tree0e145417304181cf040e914b002f7c3858e843f4 /beos/window.cpp
parent6da3b3102c013b18b6f490d9030e5c2be531fe42 (diff)
downloadnetsurf-246ab6d9ff7504cdc7bf88efe1d4aca987b5c095.tar.gz
netsurf-246ab6d9ff7504cdc7bf88efe1d4aca987b5c095.tar.bz2
allow beos frontend to make clipboard functions private.
reduces the unecessary export of clipboard functions in beos frontend and also removes inclusion of unecessary headers.
Diffstat (limited to 'beos/window.cpp')
-rw-r--r--beos/window.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/beos/window.cpp b/beos/window.cpp
index ed6abcb60..89fb7819c 100644
--- a/beos/window.cpp
+++ b/beos/window.cpp
@@ -407,7 +407,7 @@ static struct gui_window *gui_window_create(struct browser_window *bw,
return g;
}
-
+/* exported interface documented in beos/window.h */
void nsbeos_dispatch_event(BMessage *message)
{
struct gui_window *gui = NULL;
@@ -1266,7 +1266,7 @@ static void gui_start_selection(struct gui_window *g)
g->view->UnlockLooper();
}
-void gui_get_clipboard(char **buffer, size_t *length)
+static void gui_get_clipboard(char **buffer, size_t *length)
{
BMessage *clip;
*length = 0;
@@ -1288,7 +1288,7 @@ void gui_get_clipboard(char **buffer, size_t *length)
}
}
-void gui_set_clipboard(const char *buffer, size_t length,
+static void gui_set_clipboard(const char *buffer, size_t length,
nsclipboard_styles styles[], int n_styles)
{
BMessage *clip;
@@ -1320,6 +1320,13 @@ void gui_set_clipboard(const char *buffer, size_t length,
}
}
+static struct gui_clipboard_table clipboard_table = {
+ gui_get_clipboard,
+ gui_set_clipboard,
+};
+
+struct gui_clipboard_table *beos_clipboard_table = &clipboard_table;
+
static void gui_window_get_dimensions(struct gui_window *g, int *width, int *height,
bool scaled)
{