1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
extern crate libc;
extern crate time;
extern crate tango_client_sys as c_tango;
macro_rules! tango_call {
($call:ident, $res:expr, $($args:expr),+) => {
{
let error_stack = unsafe {
c::$call($($args,)+)
};
if !error_stack.is_null() {
Err(TangoError::from_stack(error_stack))
} else {
Ok($res)
}
}
}
}
pub mod types;
pub mod error;
pub mod proxy;
pub mod dbase;
pub use types::*;
pub use error::*;
pub use proxy::*;
pub use dbase::*;