[−][src]Function leap_sys::LeapCreateConnection
pub unsafe extern "C" fn LeapCreateConnection(
pConfig: *const LEAP_CONNECTION_CONFIG,
phConnection: *mut LEAP_CONNECTION
) -> eLeapRS
\ingroup Functions Creates a new LEAP_CONNECTION object.
Pass the LEAP_CONNECTION pointer to LeapOpenConnection() to establish a connection to the Leap Motion service; and to subsequent operations on the same connection.
@param pConfig The configuration to be used with the newly created connection. If pConfig is null, a connection is created with a default configuration. @param[out] phConnection Receives a pointer to the connection object @returns The operation result code, a member of the eLeapRS enumeration. @since 3.0.0