gdk4-wayland-sys-0.3.1/.cargo_vcs_info.json0000644000000001120000000000100141310ustar { "git": { "sha1": "55b67a928dad6cfca8e0caaa360953833bd3a0d7" } } gdk4-wayland-sys-0.3.1/Cargo.toml0000644000000027540000000000100121450ustar # 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 believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "gdk4-wayland-sys" version = "0.3.1" authors = ["The gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings of GDK4 Wayland" homepage = "http://gtk-rs.org/" documentation = "https://gtk-rs.org/gtk4-rs/stable/latest/docs/gdk4_wayland_sys/" keywords = ["gdk4", "gdk4-wayland", "ffi", "gtk-rs", "gnome"] license = "MIT" repository = "https://github.com/gtk-rs/gtk4-rs" [package.metadata.docs.rs] features = ["dox"] [package.metadata.system-deps.gtk4_wayland] name = "gtk4-wayland" version = "4.0.0" [package.metadata.system-deps.gtk4_wayland.v4_4] version = "4.3.2" [lib] name = "gdk4_wayland_sys" [dependencies.glib-sys] version = "0.14" [dependencies.libc] version = "0.2" [dependencies.xkbcommon-sys] version = "0.7" optional = true [dev-dependencies.shell-words] version = "1.0.0" [dev-dependencies.tempfile] version = "3" [build-dependencies.system-deps] version = "5" [features] dox = ["xkbcommon-sys"] v4_4 = ["xkbcommon-sys"] gdk4-wayland-sys-0.3.1/Cargo.toml.orig000064400000000000000000000016560072674642500156560ustar 00000000000000[package] authors = ["The gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings of GDK4 Wayland" documentation = "https://gtk-rs.org/gtk4-rs/stable/latest/docs/gdk4_wayland_sys/" edition = "2018" homepage = "http://gtk-rs.org/" keywords = ["gdk4", "gdk4-wayland", "ffi", "gtk-rs", "gnome"] license = "MIT" name = "gdk4-wayland-sys" repository = "https://github.com/gtk-rs/gtk4-rs" version = "0.3.1" [package.metadata.system-deps.gtk4_wayland] name = "gtk4-wayland" version = "4.0.0" [package.metadata.system-deps.gtk4_wayland.v4_4] version = "4.3.2" [package.metadata.docs.rs] features = ["dox"] [lib] name = "gdk4_wayland_sys" [features] dox = ["xkbcommon-sys"] v4_4 = ["xkbcommon-sys"] [dependencies] libc = "0.2" [dependencies.xkbcommon-sys] version = "0.7" optional = true [dependencies.glib-sys] version = "0.14" [build-dependencies] system-deps = "5" [dev-dependencies] shell-words = "1.0.0" tempfile = "3" gdk4-wayland-sys-0.3.1/Gir.toml000064400000000000000000000005020072674642500143720ustar 00000000000000[options] work_mode = "sys" library = "GdkWayland" version = "4.0" min_cfg_version = "4.0.0" single_version_file = "." dox_feature_dependencies = ["xkbcommon-sys"] girs_directories = ["../../gir-files"] external_libraries = [ "GLib", ] [[feature_dependencies]] version = "4.4" dependencies = [ "xkbcommon-sys" ] gdk4-wayland-sys-0.3.1/LICENSE000064400000000000000000000020000072674642500137540ustar 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.3.1/build.rs000064400000000000000000000007150072674642500144270ustar 00000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files.git) // DO NOT EDIT #[cfg(not(feature = "dox"))] use std::process; #[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure #[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={}", s); process::exit(1); } } gdk4-wayland-sys-0.3.1/src/lib.rs000064400000000000000000000174200072674642500146660ustar 00000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files.git) // 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(feature = "dox", feature(doc_cfg))] use glib_sys as glib; mod manual; pub use manual::*; #[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, size_t, ssize_t, time_t, uintptr_t, FILE, }; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; // Callbacks pub type GdkWaylandToplevelExported = Option; // Records #[repr(C)] pub struct _GdkWaylandDeviceClass(c_void); pub type GdkWaylandDeviceClass = *mut _GdkWaylandDeviceClass; #[repr(C)] pub struct _GdkWaylandDisplayClass(c_void); pub type GdkWaylandDisplayClass = *mut _GdkWaylandDisplayClass; #[repr(C)] pub struct _GdkWaylandGLContextClass(c_void); pub type GdkWaylandGLContextClass = *mut _GdkWaylandGLContextClass; #[repr(C)] pub struct _GdkWaylandMonitorClass(c_void); pub type GdkWaylandMonitorClass = *mut _GdkWaylandMonitorClass; #[repr(C)] pub struct _GdkWaylandSeatClass(c_void); pub type GdkWaylandSeatClass = *mut _GdkWaylandSeatClass; // Classes #[repr(C)] pub struct GdkWaylandDevice(c_void); impl ::std::fmt::Debug for GdkWaylandDevice { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandDevice @ {:p}", self)) .finish() } } #[repr(C)] pub struct GdkWaylandDisplay(c_void); impl ::std::fmt::Debug for GdkWaylandDisplay { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandDisplay @ {:p}", self)) .finish() } } #[repr(C)] pub struct GdkWaylandGLContext(c_void); impl ::std::fmt::Debug for GdkWaylandGLContext { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandGLContext @ {:p}", self)) .finish() } } #[repr(C)] pub struct GdkWaylandMonitor(c_void); impl ::std::fmt::Debug for GdkWaylandMonitor { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandMonitor @ {:p}", self)) .finish() } } #[repr(C)] pub struct GdkWaylandPopup(c_void); impl ::std::fmt::Debug for GdkWaylandPopup { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandPopup @ {:p}", self)) .finish() } } #[repr(C)] pub struct GdkWaylandSeat(c_void); impl ::std::fmt::Debug for GdkWaylandSeat { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandSeat @ {:p}", self)) .finish() } } #[repr(C)] pub struct GdkWaylandSurface(c_void); impl ::std::fmt::Debug for GdkWaylandSurface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandSurface @ {:p}", self)) .finish() } } #[repr(C)] pub struct GdkWaylandToplevel(c_void); impl ::std::fmt::Debug for GdkWaylandToplevel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GdkWaylandToplevel @ {:p}", self)) .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(any(feature = "v4_4", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v4_4")))] pub fn gdk_wayland_device_get_xkb_keymap(device: *mut GdkWaylandDevice) -> *mut xkb_keymap; //========================================================================= // GdkWaylandDisplay //========================================================================= pub fn gdk_wayland_display_get_type() -> GType; #[cfg(any(feature = "v4_4", feature = "dox"))] #[cfg_attr(feature = "dox", 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; 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.3.1/src/manual.rs000064400000000000000000000002430072674642500153700ustar 00000000000000// Take a look at the license at the top of the repository in the LICENSE file. #[cfg(any(feature = "v4_4", feature = "dox"))] pub use xkbcommon_sys::xkb_keymap; gdk4-wayland-sys-0.3.1/versions.txt000064400000000000000000000002100072674642500153610ustar 00000000000000Generated by gir (https://github.com/gtk-rs/gir @ 4aa58cff8048) from gir-files (https://github.com/gtk-rs/gir-files.git @ b827978e7d18)