pub type IResourceConsumer = *mut c_void;