macro_rules! x11_link {
{ $struct_name:ident, $pkg_name:expr, [$($lib_name:expr),*], $nsyms:expr,
$(pub fn $fn_name:ident ($($param_name:ident : $param_type:ty),*) -> $ret_type:ty,)*
variadic:
$(pub fn $vfn_name:ident ($($vparam_name: ident : $vparam_type:ty),+) -> $vret_type:ty,)*
globals:
$(pub static $var_name:ident : $var_type:ty,)*
} => {
extern "C" {
$(pub fn $fn_name ($($param_name : $param_type),*) -> $ret_type;)*
$(pub fn $vfn_name ($($vparam_name : $vparam_type),+, ...) -> $vret_type;)*
}
extern {
$(pub static $var_name : $var_type;)*
}
}
}