pub type RpcBufferIsEmptyCallback = Option<unsafe extern "C" fn(*mut c_void)>;
Callback to notify client that buffer is empty