From a2d645ffe3fa23e8c57950987c93c0fe8822238b Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 1 Oct 2010 20:01:47 +0200 Subject: Change VD_AGENT_CLIPBOARD_GRAB to an array of types A clipboard owner can indicate that it can supply the data the clipboard owns in multiple formats, so make the data passed with a VD_AGENT_CLIPBOARD_GRAB message an array of types rather then a single type. --- client/platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/platform.h') diff --git a/client/platform.h b/client/platform.h index 47278893..48476cf2 100644 --- a/client/platform.h +++ b/client/platform.h @@ -121,7 +121,7 @@ public: class ClipboardListener; static void set_clipboard_listener(ClipboardListener* listener); - static bool set_clipboard_owner(uint32_t type); + static bool set_clipboard_owner(uint32_t *types, uint32_t type_count); static bool set_clipboard_data(uint32_t type, const uint8_t* data, int32_t size); static bool request_clipboard_notification(uint32_t type); static void release_clipboard(); @@ -138,7 +138,7 @@ public: class Platform::ClipboardListener { public: virtual ~ClipboardListener() {} - virtual void on_clipboard_grab(uint32_t type) = 0; + virtual void on_clipboard_grab(uint32_t *types, uint32_t type_count) = 0; virtual void on_clipboard_request(uint32_t type) = 0; virtual void on_clipboard_notify(uint32_t type, uint8_t* data, int32_t size) = 0; }; -- cgit