Function wacom_sys::libwacom_new_from_path [] [src]

pub unsafe extern "C" fn libwacom_new_from_path(
    db: *const WacomDeviceDatabase,
    path: *const c_char,
    fallback: WacomFallbackFlags,
    error: *mut WacomError
) -> *mut WacomDevice

Create a new device reference from the given device path. In case of error, NULL is returned and the error is set to the appropriate value.

@param db A device database @param path A device path in the form of e.g. /dev/input/event0 @param fallback Whether we should create a generic if model is unknown @param error If not NULL, set to the error if any occurs

@return A new reference to this device or NULL on errror.