From 246ab6d9ff7504cdc7bf88efe1d4aca987b5c095 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 3 May 2016 19:45:25 +0100 Subject: 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. --- beos/window.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'beos/window.cpp') 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) { -- cgit v1.2.3