gstreamer_gl_x11_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 GstGLDisplayX11Class {
35    pub object_class: gst_gl::GstGLDisplayClass,
36    pub _padding: [gpointer; 4],
37}
38
39impl ::std::fmt::Debug for GstGLDisplayX11Class {
40    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
41        f.debug_struct(&format!("GstGLDisplayX11Class @ {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 GstGLDisplayX11 {
52    pub parent: gst_gl::GstGLDisplay,
53    pub name: *mut c_char,
54    pub display: gpointer,
55    pub xcb_connection: gpointer,
56    pub foreign_display: gboolean,
57    pub _padding: [gpointer; 4],
58}
59
60impl ::std::fmt::Debug for GstGLDisplayX11 {
61    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
62        f.debug_struct(&format!("GstGLDisplayX11 @ {self:p}"))
63            .finish()
64    }
65}
66
67extern "C" {
68
69    //=========================================================================
70    // GstGLDisplayX11
71    //=========================================================================
72    pub fn gst_gl_display_x11_get_type() -> GType;
73    pub fn gst_gl_display_x11_new(name: *const c_char) -> *mut GstGLDisplayX11;
74    pub fn gst_gl_display_x11_new_with_display(display: gpointer) -> *mut GstGLDisplayX11;
75
76}