[go: up one dir, main page]

gvnc/
lib.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3//! # GVnc bindings
4//!
5//! This library contains safe Rust bindings for GVnc.
6
7#![cfg_attr(docsrs, feature(doc_cfg))]
8
9pub use ffi;
10pub use gio;
11pub use glib;
12
13// no runtime to initialize
14macro_rules! assert_initialized_main_thread {
15    () => {};
16}
17
18// No-op
19macro_rules! skip_assert_initialized {
20    () => {};
21}
22
23#[allow(unused_imports)]
24mod auto;
25pub use auto::*;
26
27pub mod prelude;
28pub mod subclass;
29
30mod connection;
31mod cursor;
32mod framebuffer;
33pub use framebuffer::*;
34mod pixel_format;
35pub use pixel_format::*;
36
37pub mod builders {
38    pub use super::auto::builders::*;
39}
40
41#[doc(alias = "vnc_util_set_debug")]
42pub fn set_debug(enabled: bool) {
43    unsafe { ffi::vnc_util_set_debug(enabled as i32) }
44}