1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:27:35 +00:00

SpiceAgent: Add support for copying images to the clipboard

This commit is contained in:
Caoimhe 2023-05-13 15:24:53 +01:00 committed by Andreas Kling
parent 50a8db3922
commit 9f92e52464
4 changed files with 63 additions and 11 deletions

View file

@ -9,6 +9,7 @@
#include <AK/ByteBuffer.h>
#include <AK/Format.h>
#include <AK/Forward.h>
#include <AK/String.h>
#include <AK/Vector.h>
namespace SpiceAgent {
@ -50,6 +51,9 @@ enum class ClipboardDataType : u32 {
__End
};
ErrorOr<String> clipboard_data_type_to_mime_type(ClipboardDataType type);
ErrorOr<ClipboardDataType> clipboard_data_type_from_raw_value(u32 value);
class Message {
public:
// The spice protocol headers contain a bit of documentation about these, but nothing major: