#![allow(dead_code, non_camel_case_types)]
#[macro_use(external_library,link_external_library,dlopen_external_library)]
extern crate dlib;
#[cfg(feature = "dlopen")]
#[macro_use]
extern crate lazy_static;
#[cfg(feature = "server")]
extern crate libc;
pub mod common;
#[cfg(feature = "client")]
pub mod client;
#[cfg(feature = "server")]
pub mod server;
#[cfg(all(feature = "egl", feature = "client"))]
pub mod egl;
#[cfg(all(feature = "cursor", feature = "client"))]
pub mod cursor;
#[cfg(feature = "server")]
pub use libc::{pid_t, uid_t, gid_t};
#[cfg(feature = "dlopen")]
#[macro_export]
macro_rules! ffi_dispatch(
($handle: ident, $func: ident, $($arg: expr),*) => (
($handle.$func)($($arg),*)
)
);
#[cfg(not(feature = "dlopen"))]
#[macro_export]
macro_rules! ffi_dispatch(
($handle: ident, $func: ident, $($arg: expr),*) => (
$func($($arg),*)
)
);