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