diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-10-02 13:03:50 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-10-02 15:32:48 +0200 |
commit | deb849dfd54deafa894692f4e44208c2de9f33aa (patch) | |
tree | cb930f051c41004674bb6592dcd2c8cb4e7cab87 /client/red_client.cpp | |
parent | 5781c97a1751e8e889b30dcce4641fb30508e072 (diff) | |
download | spice-deb849dfd54deafa894692f4e44208c2de9f33aa.tar.gz spice-deb849dfd54deafa894692f4e44208c2de9f33aa.tar.xz spice-deb849dfd54deafa894692f4e44208c2de9f33aa.zip |
Rename platform clipboard handling functions
Rename the 4 platform clipboard functions which get called
upon receival of an agent clipboard message to on_clipboard_*
The old set_clipboard_* names were confusing as they suggest being
a class property setter (like set_event_listener) rather then
event handler, and set_clipboard_owner was causing a name conflict
with the next patch in this series.
Diffstat (limited to 'client/red_client.cpp')
-rw-r--r-- | client/red_client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp index 666de40c..3f01fb1c 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -1087,21 +1087,21 @@ void RedClient::dispatch_agent_message(VDAgentMessage* msg, void* data) } case VD_AGENT_CLIPBOARD: { VDAgentClipboard* clipboard = (VDAgentClipboard*)data; - Platform::set_clipboard_data(clipboard->type, clipboard->data, + Platform::on_clipboard_notify(clipboard->type, clipboard->data, msg->size - sizeof(VDAgentClipboard)); break; } case VD_AGENT_CLIPBOARD_GRAB: - Platform::set_clipboard_owner((uint32_t *)data, + Platform::on_clipboard_grab((uint32_t *)data, msg->size / sizeof(uint32_t)); break; case VD_AGENT_CLIPBOARD_REQUEST: - if (!Platform::request_clipboard_notification(((VDAgentClipboardRequest*)data)->type)) { + if (!Platform::on_clipboard_request(((VDAgentClipboardRequest*)data)->type)) { on_clipboard_notify(VD_AGENT_CLIPBOARD_NONE, NULL, 0); } break; case VD_AGENT_CLIPBOARD_RELEASE: - Platform::release_clipboard(); + Platform::on_clipboard_release(); break; default: DBG(0, "Unsupported message type %u size %u", msg->type, msg->size); |