gstreamer_gl_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_gl_sys as gst_gl;
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 GstGLDisplayWaylandClass {
35    pub object_class: gst_gl::GstGLDisplayClass,
36    pub _padding: [gpointer; 4],
37}
38
39impl ::std::fmt::Debug for GstGLDisplayWaylandClass {
40    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
41        f.debug_struct(&format!("GstGLDisplayWaylandClass @ {self:p}"))
42            .field("object_class", &self.object_class)
43            .field("_padding", &self._padding)
44            .finish()
45    }
46}
47
48// Classes
49#[derive(Copy, Clone)]
50#[repr(C)]
51pub struct GstGLDisplayWayland {
52    pub parent: gst_gl::GstGLDisplay,
53    pub display: gpointer,
54    pub registry: gpointer,
55    pub compositor: gpointer,
56    pub subcompositor: gpointer,
57    pub shell: gpointer,
58    pub foreign_display: gboolean,
59    pub _padding: [gpointer; 4],
60}
61
62impl ::std::fmt::Debug for GstGLDisplayWayland {
63    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
64        f.debug_struct(&format!("GstGLDisplayWayland @ {self:p}"))
65            .field("parent", &self.parent)
66            .field("display", &self.display)
67            .field("registry", &self.registry)
68            .field("compositor", &self.compositor)
69            .field("subcompositor", &self.subcompositor)
70            .field("shell", &self.shell)
71            .finish()
72    }
73}
74
75extern "C" {
76
77    //=========================================================================
78    // GstGLDisplayWayland
79    //=========================================================================
80    pub fn gst_gl_display_wayland_get_type() -> GType;
81    pub fn gst_gl_display_wayland_new(name: *const c_char) -> *mut GstGLDisplayWayland;
82    pub fn gst_gl_display_wayland_new_with_display(display: gpointer) -> *mut GstGLDisplayWayland;
83
84}