{
ValidationUtil.ValidateEnum(typeof(CameraDevice), device, nameof(device));
- Native.GetProductId(Handle, out ushort productId).ThrowIfFailed("failed to get product ID");
+ Native.GetProductId(Handle, device, out ushort productId).ThrowIfFailed("failed to get product ID");
return productId;
}
{
ValidationUtil.ValidateEnum(typeof(CameraDevice), device, nameof(device));
- Native.GetVendorId(Handle, out ushort vendorId).ThrowIfFailed("failed to get vendor ID");
+ Native.GetVendorId(Handle, device, out ushort vendorId).ThrowIfFailed("failed to get vendor ID");
return vendorId;
}
internal static extern CameraError UnsetDeviceConnectionChangedCallback(IntPtr handle, int id);
[DllImport(Libraries.Camera, EntryPoint = "camera_device_manager_get_product_id")]
- internal static extern CameraError GetProductId(IntPtr handle, out ushort id);
+ internal static extern CameraError GetProductId(IntPtr handle, CameraDevice device, out ushort id);
[DllImport(Libraries.Camera, EntryPoint = "camera_device_manager_get_vendor_id")]
- internal static extern CameraError GetVendorId(IntPtr handle, out ushort id);
+ internal static extern CameraError GetVendorId(IntPtr handle, CameraDevice device, out ushort id);
[NativeStruct("camera_device_s", Include="camera.h", PkgConfig="capi-media-camera")]
[StructLayout(LayoutKind.Sequential)]