#[no_mangle]
pub extern "C" fn new_device_info(
    vendor_id: u16,
    product_id: u16,
    manufacturer_name: *mut c_char,
    device_name: *mut c_char,
    device_id: DeviceID,
    device_type: DeviceType
) -> *mut DeviceInfo
Expand description

Create a new device info struct. This is only for use in Plugins that are written in C Rust plugins should use the native constructor The memory for the struct has been allocated in Rust. So drop_device_info must be called for the memory to be properly released