gstreamer_vulkan_wayland_sys/
lib.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
7#![allow(
8    clippy::approx_constant,
9    clippy::type_complexity,
10    clippy::unreadable_literal,
11    clippy::upper_case_acronyms
12)]
13#![cfg_attr(docsrs, feature(doc_cfg))]
14
15use glib_sys as glib;
16use gstreamer_vulkan_sys as gst_vulkan;
17
18#[cfg(unix)]
19#[allow(unused_imports)]
20use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
21#[allow(unused_imports)]
22use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE};
23#[allow(unused_imports)]
24use std::ffi::{
25    c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
26};
27
28#[allow(unused_imports)]
29use glib::{gboolean, gconstpointer, gpointer, GType};
30
31// Records
32#[derive(Copy, Clone)]
33#[repr(C)]
34pub struct GstVulkanDisplayWaylandClass {
35    pub object_class: gst_vulkan::GstVulkanDisplayClass,
36}
37
38impl ::std::fmt::Debug for GstVulkanDisplayWaylandClass {
39    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
40        f.debug_struct(&format!("GstVulkanDisplayWaylandClass @ {self:p}"))
41            .field("object_class", &self.object_class)
42            .finish()
43    }
44}
45
46// Classes
47#[derive(Copy, Clone)]
48#[repr(C)]
49pub struct GstVulkanDisplayWayland {
50    pub parent: gst_vulkan::GstVulkanDisplay,
51    pub display: gpointer,
52    pub registry: gpointer,
53    pub compositor: gpointer,
54    pub subcompositor: gpointer,
55    pub shell: gpointer,
56    pub foreign_display: gboolean,
57}
58
59impl ::std::fmt::Debug for GstVulkanDisplayWayland {
60    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
61        f.debug_struct(&format!("GstVulkanDisplayWayland @ {self:p}"))
62            .field("parent", &self.parent)
63            .field("display", &self.display)
64            .field("registry", &self.registry)
65            .field("compositor", &self.compositor)
66            .field("subcompositor", &self.subcompositor)
67            .field("shell", &self.shell)
68            .finish()
69    }
70}
71
72extern "C" {
73
74    //=========================================================================
75    // GstVulkanDisplayWayland
76    //=========================================================================
77    pub fn gst_vulkan_display_wayland_get_type() -> GType;
78    pub fn gst_vulkan_display_wayland_new(name: *const c_char) -> *mut GstVulkanDisplayWayland;
79    pub fn gst_vulkan_display_wayland_new_with_display(
80        display: gpointer,
81    ) -> *mut GstVulkanDisplayWayland;
82
83}