unsafe extern "C" fn create_android_display_context(
name: *const c_char,
error_callback: unsafe extern "C" fn(message: *const c_char)
) -> *mut AndroidDisplayContext
Expand description
Constructs an AndroidDisplayContext for this backend. This awlays returns a valid (ex:
non-null) handle to the context. The name
parameter is from crosvm commandline and the
client of crosvm will use it to locate and communicate to the AndroidDisplayContext. For
example, this can be a path to UNIX domain socket where a RPC binder server listens on.
error_callback
is a function pointer to an error reporting function, and will be used by
this and other functions below when something goes wrong. The returned context should be
destroyed by calling destroy_android_display_context
if this backend is no longer in use.