pocketsphinx_sys/
glist.rs1use std::mem::transmute_copy;
2use libc::c_void;
3
4#[allow(non_camel_case_types)]
5#[repr(C)]
6pub struct anytype_t([u8; 8]);
7
8impl anytype_t {
9 pub unsafe fn as_ptr(&self) -> *const c_void { transmute_copy(&self.0) }
10 pub unsafe fn as_i32(&self) -> *const c_void { transmute_copy(&self.0) }
11 pub unsafe fn as_u32(&self) -> *const c_void { transmute_copy(&self.0) }
12 pub unsafe fn as_f64(&self) -> *const c_void { transmute_copy(&self.0) }
13}
14
15#[allow(non_camel_case_types)]
16#[repr(C)]
17pub struct gnode_t {
18 pub data: anytype_t,
19 pub next: *const gnode_t,
20}
21
22#[allow(non_camel_case_types)]
23pub type glist_t = *const gnode_t;