Debian Codegraph @

gst-libs/gst/vulkan/wayland/gstvkdisplay_wayland.h

raw symbols SCIP
1 /*
2 * GStreamer
3 * Copyright (C) 2016 Matthew Waters <[email protected]>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21 #ifndef __GST_VK_DISPLAY_WAYLAND_H__
22 #define __GST_VK_DISPLAY_WAYLAND_H__
23
24 #include <gst/gst.h>
25
26 #include <wayland-client.h>
27
28 #include <gst/vulkan/vulkan.h>
29 #include <vulkan/vulkan_wayland.h>
30
31 G_BEGIN_DECLS
32
33 #define GST_TYPE_VULKAN_DISPLAY_WAYLAND (gst_vulkan_display_wayland_get_type())
34 GST_VULKAN_API
35 GType gst_vulkan_display_wayland_get_type (void);
36
37 #define GST_VULKAN_DISPLAY_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VULKAN_DISPLAY_WAYLAND,GstVulkanDisplayWayland))
38 #define GST_VULKAN_DISPLAY_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_VULKAN_DISPLAY_WAYLAND,GstVulkanDisplayWaylandClass))
39 #define GST_IS_VULKAN_DISPLAY_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VULKAN_DISPLAY_WAYLAND))
40 #define GST_IS_VULKAN_DISPLAY_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_VULKAN_DISPLAY_WAYLAND))
41 /**
42 * GST_VULKAN_DISPLAY_WAYLAND_CAST:
43 *
44 * Since: 1.18
45 */
46 #define GST_VULKAN_DISPLAY_WAYLAND_CAST(obj) ((GstVulkanDisplayWayland*)(obj))
47
48 typedef struct _GstVulkanDisplayWayland GstVulkanDisplayWayland;
49 typedef struct _GstVulkanDisplayWaylandClass GstVulkanDisplayWaylandClass;
50
51 /**
52 * GstVulkanDisplayWayland:
53 *
54 * the contents of a #GstVulkanDisplayWayland are private and should only be accessed
55 * through the provided API
56 *
57 * Since: 1.18
58 */
59 struct _GstVulkanDisplayWayland
60 {
61 GstVulkanDisplay parent;
62
63 struct wl_display *display;
64 struct wl_registry *registry;
65 struct wl_compositor *compositor;
66 struct wl_subcompositor *subcompositor;
67 struct wl_shell *shell;
68
69 /* <private> */
70 gboolean foreign_display;
71 };
72
73 /**
74 * GstVulkanDisplayWaylandClass:s
75 *
76 * Since: 1.18
77 */
78 struct _GstVulkanDisplayWaylandClass
79 {
80 GstVulkanDisplayClass object_class;
81 };
82
83 /**
84 * GST_VULKAN_DISPLAY_WAYLAND_DISPLAY
85 *
86 * Since: 1.18
87 */
88 #define GST_VULKAN_DISPLAY_WAYLAND_DISPLAY(display_) (GST_VULKAN_DISPLAY_WAYLAND (display_)->display)
89
90 GST_VULKAN_API
91 GstVulkanDisplayWayland *gst_vulkan_display_wayland_new (const gchar * name) G_GNUC_WARN_UNUSED_RESULT;
92 GST_VULKAN_API
93 GstVulkanDisplayWayland *gst_vulkan_display_wayland_new_with_display (struct wl_display *display) G_GNUC_WARN_UNUSED_RESULT;
94
95 G_END_DECLS
96
97 #endif /* __GST_VULKAN_DISPLAY_WAYLAND_H__ */