Clean up module exports/re-exports

This commit is contained in:
Sebastian Dröge 2018-05-01 17:30:02 +03:00
parent 51b21ef977
commit 9559742e19
3 changed files with 7 additions and 7 deletions

View file

@ -14,14 +14,14 @@ use gobject_ffi;
#[macro_export]
macro_rules! callback_guard {
() => {
let _guard = ::glib::CallbackGuard::new();
let _guard = $crate::glib::CallbackGuard::new();
};
}
#[macro_export]
macro_rules! floating_reference_guard {
($obj:ident) => {
let _guard = $crate::FloatingReferenceGuard::new($obj as *mut _);
let _guard = $crate::guard::FloatingReferenceGuard::new($obj as *mut _);
};
}

View file

@ -6,8 +6,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub extern crate glib_sys as glib_ffi;
pub extern crate gobject_sys as gobject_ffi;
extern crate glib_sys as glib_ffi;
extern crate gobject_sys as gobject_ffi;
extern crate libc;
@ -18,7 +18,6 @@ pub mod anyimpl;
#[macro_use]
pub mod guard;
pub use guard::FloatingReferenceGuard;
pub mod properties;
#[macro_use]

View file

@ -6,12 +6,13 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
extern crate byteorder;
pub extern crate glib_sys as glib_ffi;
pub extern crate gobject_sys as gobject_ffi;
extern crate gstreamer_base_sys as gst_base_ffi;
pub extern crate gstreamer_sys as gst_ffi;
extern crate gstreamer_base_sys as gst_base_ffi;
#[macro_use]
extern crate lazy_static;
extern crate libc;