| 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | #![allow( |
| 3 | dead_code, |
| 4 | improper_ctypes_definitions, |
| 5 | improper_ctypes, |
| 6 | non_camel_case_types, |
| 7 | non_snake_case, |
| 8 | non_upper_case_globals, |
| 9 | unnecessary_transmutes, |
| 10 | unsafe_op_in_unsafe_fn, |
| 11 | clippy::pedantic, |
| 12 | clippy::restriction, |
| 13 | clippy::style, |
| 14 | clippy::missing_const_for_fn, |
| 15 | clippy::ptr_offset_with_cast, |
| 16 | clippy::useless_transmute, |
| 17 | clippy::missing_safety_doc, |
| 18 | clippy::too_many_arguments |
| 19 | )] |
| 20 | |
| 21 | use glib_sys::{GHashTable, GHashTableIter, GSList}; |
| 22 | use util_sys::{Error, QDict, QObject, Visitor}; |
| 23 | |
| 24 | #[cfg(MESON)] |
| 25 | include!("bindings.inc.rs"); |
| 26 | |
| 27 | #[cfg(not(MESON))] |
| 28 | include!(concat!(env!("OUT_DIR"), "/bindings.inc.rs")); |
| 29 | |
| 30 | unsafe impl Send for TypeInfo {} |
| 31 | unsafe impl Sync for TypeInfo {} |