[][src]Function vigem_sys::binds::vigem_target_add_async

pub unsafe extern "C" fn vigem_target_add_async(
    vigem: PVIGEM_CLIENT,
    target: PVIGEM_TARGET,
    result: PFN_VIGEM_TARGET_ADD_RESULT
) -> VIGEM_ERROR

\fn VIGEM_ERROR vigem_target_add_async(PVIGEM_CLIENT vigem, PVIGEM_TARGET target, PVIGEM_TARGET_ADD_RESULT result);

\brief Adds a provided target device to the bus driver, which is equal to a device plug-in event of a physical hardware device. This function immediately returns. An optional callback may be registered which gets called on error or if the target device has become fully operational.

\author Benjamin "Nefarius" H�glinger \date 28.08.2017

\param vigem The driver connection object. \param target The target device object. \param result An optional function getting called when the target device becomes available.

\return A VIGEM_ERROR.