]> Pileus Git - ~andy/gtk/blobdiff - gdk/wayland/gdkwayland.h
wayland: Expose basic mechanism for getting selection content by callback
[~andy/gtk] / gdk / wayland / gdkwayland.h
index d4616cd12f0c6a3e98dbfc729e1dec43eac65d62..e7028cd5b565d6d39f7b005f84fd23f5447b02b6 100644 (file)
@@ -37,7 +37,18 @@ GType      gdk_wayland_display_manager_get_type   (void);
 #define gdk_wayland_device_get_selection_type_atoms gdk_wayland_device_get_selection_type_atoms_libgtk_only
 int
 gdk_wayland_device_get_selection_type_atoms (GdkDevice  *device,
-                                                         GdkAtom   **atoms_out);
+                                             GdkAtom   **atoms_out);
+
+typedef void (*GdkDeviceWaylandRequestContentCallback) (GdkDevice *device, gchar *data, gsize len, gpointer userdata);
+
+#define gdk_wayland_device_request_selection_content gdk_wayland_device_request_selection_content_libgtk_only
+gboolean
+gdk_wayland_device_request_selection_content (GdkDevice                              *device,
+                                              const gchar                            *requested_mime_type,
+                                              GdkDeviceWaylandRequestContentCallback  cb,
+                                              gpointer                                userdata);
+
+
 #endif
 G_END_DECLS