gdk4-wayland-sys-0.9.0/.cargo_vcs_info.json0000644000000001560000000000100141460ustar { "git": { "sha1": "0825d6a8dda103b49f765a72105e3fa3399c181d" }, "path_in_vcs": "gdk4-wayland/sys" }gdk4-wayland-sys-0.9.0/Cargo.toml0000644000000035130000000000100121440ustar # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.70" name = "gdk4-wayland-sys" version = "0.9.0" authors = ["The gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings of GDK4 Wayland" homepage = "https://gtk-rs.org/gtk4-rs" documentation = "https://gtk-rs.org/gtk4-rs/stable/latest/docs/gdk4_wayland_sys/" keywords = [ "gdk4", "gdk4-wayland", "ffi", "gtk-rs", "gnome", ] categories = [ "api-bindings", "gui", ] license = "MIT" repository = "https://github.com/gtk-rs/gtk4-rs" [package.metadata.docs.rs] all-features = true rustc-args = [ "--cfg", "docsrs", ] rustdoc-args = [ "--cfg", "docsrs", "--generate-link-to-definition", ] [package.metadata.system-deps.gtk4_wayland] name = "gtk4-wayland" version = "4.0.0" [package.metadata.system-deps.gtk4_wayland.v4_10] version = "4.10" [package.metadata.system-deps.gtk4_wayland.v4_12] version = "4.12" [package.metadata.system-deps.gtk4_wayland.v4_16] version = "4.15" [package.metadata.system-deps.gtk4_wayland.v4_4] version = "4.4" [lib] name = "gdk4_wayland_sys" [dependencies.glib-sys] version = "0.20" features = ["v2_66"] [dependencies.libc] version = "0.2" [dev-dependencies.shell-words] version = "1.0.0" [dev-dependencies.tempfile] version = "3" [build-dependencies.system-deps] version = "7" [features] v4_10 = ["v4_4"] v4_12 = ["v4_10"] v4_16 = ["v4_12"] v4_4 = [] gdk4-wayland-sys-0.9.0/Cargo.toml.orig000064400000000000000000000024541046102023000156300ustar 00000000000000[package] name = "gdk4-wayland-sys" build = "build.rs" description = "FFI bindings of GDK4 Wayland" documentation = "https://gtk-rs.org/gtk4-rs/stable/latest/docs/gdk4_wayland_sys/" keywords = ["gdk4", "gdk4-wayland", "ffi", "gtk-rs", "gnome"] [package.authors] workspace = true [package.categories] workspace = true [package.edition] workspace = true [package.homepage] workspace = true [package.license] workspace = true [package.repository] workspace = true [package.rust-version] workspace = true [package.version] workspace = true [package.metadata.system-deps.gtk4_wayland] name = "gtk4-wayland" version = "4.0.0" [package.metadata.system-deps.gtk4_wayland.v4_4] version = "4.4" [package.metadata.system-deps.gtk4_wayland.v4_10] version = "4.10" [package.metadata.system-deps.gtk4_wayland.v4_12] version = "4.12" [package.metadata.system-deps.gtk4_wayland.v4_16] version = "4.15" [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] all-features = true [lib] name = "gdk4_wayland_sys" [features] v4_4 = [] v4_10 = ["v4_4"] v4_12 = ["v4_10"] v4_16 = ["v4_12"] [dependencies] libc = "0.2" [dependencies.glib-sys] workspace = true [build-dependencies] system-deps = "7" [dev-dependencies] shell-words = "1.0.0" tempfile = "3" gdk4-wayland-sys-0.9.0/Gir.toml000064400000000000000000000003041046102023000143470ustar 00000000000000[options] work_mode = "sys" library = "GdkWayland" version = "4.0" min_cfg_version = "4.0.0" single_version_file = "." girs_directories = ["../../gir-files"] external_libraries = [ "GLib", ] gdk4-wayland-sys-0.9.0/LICENSE000064400000000000000000000020001046102023000137310ustar 00000000000000Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. gdk4-wayland-sys-0.9.0/build.rs000064400000000000000000000006541046102023000144060ustar 00000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT #[cfg(not(docsrs))] use std::process; #[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure #[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); process::exit(1); } } gdk4-wayland-sys-0.9.0/src/lib.rs000064400000000000000000000222011046102023000146340ustar 00000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow( clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal, clippy::upper_case_acronyms )] #![cfg_attr(docsrs, feature(doc_cfg))] use glib_sys as glib; #[allow(unused_imports)] use libc::{ c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE, }; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; // Callbacks pub type GdkWaylandToplevelExported = Option; // Records #[repr(C)] pub struct _GdkWaylandDeviceClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GdkWaylandDeviceClass = _GdkWaylandDeviceClass; #[repr(C)] pub struct _GdkWaylandDisplayClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GdkWaylandDisplayClass = _GdkWaylandDisplayClass; #[repr(C)] pub struct _GdkWaylandGLContextClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GdkWaylandGLContextClass = _GdkWaylandGLContextClass; #[repr(C)] pub struct _GdkWaylandMonitorClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GdkWaylandMonitorClass = _GdkWaylandMonitorClass; #[repr(C)] pub struct _GdkWaylandSeatClass { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GdkWaylandSeatClass = _GdkWaylandSeatClass; // Classes #[repr(C)] pub struct GdkWaylandDevice { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GdkWaylandDevice { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandDevice @ {self:p}")) .finish() } } #[repr(C)] pub struct GdkWaylandDisplay { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GdkWaylandDisplay { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandDisplay @ {self:p}")) .finish() } } #[repr(C)] pub struct GdkWaylandGLContext { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GdkWaylandGLContext { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandGLContext @ {self:p}")) .finish() } } #[repr(C)] pub struct GdkWaylandMonitor { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GdkWaylandMonitor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandMonitor @ {self:p}")) .finish() } } #[repr(C)] pub struct GdkWaylandPopup { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GdkWaylandPopup { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandPopup @ {self:p}")) .finish() } } #[repr(C)] pub struct GdkWaylandSeat { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GdkWaylandSeat { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandSeat @ {self:p}")) .finish() } } #[repr(C)] pub struct GdkWaylandSurface { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GdkWaylandSurface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandSurface @ {self:p}")) .finish() } } #[repr(C)] pub struct GdkWaylandToplevel { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GdkWaylandToplevel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandToplevel @ {self:p}")) .finish() } } #[link(name = "gtk-4")] extern "C" { //========================================================================= // GdkWaylandDevice //========================================================================= pub fn gdk_wayland_device_get_type() -> GType; pub fn gdk_wayland_device_get_node_path(device: *mut GdkWaylandDevice) -> *const c_char; pub fn gdk_wayland_device_get_wl_keyboard(device: *mut GdkWaylandDevice) -> gpointer; pub fn gdk_wayland_device_get_wl_pointer(device: *mut GdkWaylandDevice) -> gpointer; pub fn gdk_wayland_device_get_wl_seat(device: *mut GdkWaylandDevice) -> gpointer; #[cfg(feature = "v4_4")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_wayland_device_get_xkb_keymap(device: *mut GdkWaylandDevice) -> gpointer; //========================================================================= // GdkWaylandDisplay //========================================================================= pub fn gdk_wayland_display_get_type() -> GType; #[cfg(feature = "v4_4")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] pub fn gdk_wayland_display_get_egl_display(display: *mut GdkWaylandDisplay) -> gpointer; pub fn gdk_wayland_display_get_startup_notification_id( display: *mut GdkWaylandDisplay, ) -> *const c_char; pub fn gdk_wayland_display_get_wl_compositor(display: *mut GdkWaylandDisplay) -> gpointer; pub fn gdk_wayland_display_get_wl_display(display: *mut GdkWaylandDisplay) -> gpointer; pub fn gdk_wayland_display_query_registry( display: *mut GdkWaylandDisplay, global: *const c_char, ) -> gboolean; pub fn gdk_wayland_display_set_cursor_theme( display: *mut GdkWaylandDisplay, name: *const c_char, size: c_int, ); pub fn gdk_wayland_display_set_startup_notification_id( display: *mut GdkWaylandDisplay, startup_id: *const c_char, ); //========================================================================= // GdkWaylandGLContext //========================================================================= pub fn gdk_wayland_gl_context_get_type() -> GType; //========================================================================= // GdkWaylandMonitor //========================================================================= pub fn gdk_wayland_monitor_get_type() -> GType; pub fn gdk_wayland_monitor_get_wl_output(monitor: *mut GdkWaylandMonitor) -> gpointer; //========================================================================= // GdkWaylandPopup //========================================================================= pub fn gdk_wayland_popup_get_type() -> GType; //========================================================================= // GdkWaylandSeat //========================================================================= pub fn gdk_wayland_seat_get_type() -> GType; pub fn gdk_wayland_seat_get_wl_seat(seat: *mut GdkWaylandSeat) -> gpointer; //========================================================================= // GdkWaylandSurface //========================================================================= pub fn gdk_wayland_surface_get_type() -> GType; pub fn gdk_wayland_surface_get_wl_surface(surface: *mut GdkWaylandSurface) -> gpointer; //========================================================================= // GdkWaylandToplevel //========================================================================= pub fn gdk_wayland_toplevel_get_type() -> GType; #[cfg(feature = "v4_12")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] pub fn gdk_wayland_toplevel_drop_exported_handle( toplevel: *mut GdkWaylandToplevel, handle: *const c_char, ); pub fn gdk_wayland_toplevel_export_handle( toplevel: *mut GdkWaylandToplevel, callback: GdkWaylandToplevelExported, user_data: gpointer, destroy_func: glib::GDestroyNotify, ) -> gboolean; pub fn gdk_wayland_toplevel_set_application_id( toplevel: *mut GdkWaylandToplevel, application_id: *const c_char, ); pub fn gdk_wayland_toplevel_set_transient_for_exported( toplevel: *mut GdkWaylandToplevel, parent_handle_str: *const c_char, ) -> gboolean; pub fn gdk_wayland_toplevel_unexport_handle(toplevel: *mut GdkWaylandToplevel); } gdk4-wayland-sys-0.9.0/versions.txt000064400000000000000000000002041046102023000153410ustar 00000000000000Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc) from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70)