protected RawDevice(Manager manager, GioMetadataSource gioMetadata, UdevMetadataSource udevMetadata) { Manager = manager; GioMetadata = gioMetadata; UdevMetadata = udevMetadata; if (!string.IsNullOrEmpty(IdMediaPlayer)) { MediaCapabilities = new DeviceMediaCapabilities(IdMediaPlayer); } }
static UdevMetadataSource ResolveUsingUsbBusAndPort(UdevMetadataSource metadata, bool recurse) { do { if (metadata.PropertyExists(UdevUsbBusNumber) && metadata.PropertyExists(UdevUsbDeviceNumber)) { return(metadata); } } while (recurse && (metadata = metadata.Parent) != null); return(null); }
static UdevMetadataSource ResolveUsingBusType(UdevMetadataSource metadata, bool recurse) { var comparer = StringComparer.OrdinalIgnoreCase; do { if (metadata.PropertyExists("ID_BUS") && comparer.Equals("usb", metadata.GetPropertyString("ID_BUS"))) { return(metadata); } } while (recurse && (metadata = metadata.Parent) != null); return(null); }
public RawUsbDevice (Manager manager, GioMetadataSource gioMetadata, UdevMetadataSource udevMetadata) : base (manager, gioMetadata, udevMetadata) { }
public RawBlockDevice (GLib.Drive drive, Manager manager, GioDriveMetadetaSource gioMetadata, UdevMetadataSource udevMetadata) : base (manager, gioMetadata, udevMetadata) { Drive = drive; }
static UdevMetadataSource ResolveUsingBusType (UdevMetadataSource metadata, bool recurse) { var comparer = StringComparer.OrdinalIgnoreCase; do { if (metadata.PropertyExists ("ID_BUS") && comparer.Equals ("usb", metadata.GetPropertyString ("ID_BUS"))) return metadata; } while (recurse && (metadata = metadata.Parent) != null); return null; }
static UdevMetadataSource ResolveUsingUsbBusAndPort (UdevMetadataSource metadata, bool recurse) { do { if (metadata.PropertyExists (UdevUsbBusNumber) && metadata.PropertyExists (UdevUsbDeviceNumber)) return metadata; } while (recurse && (metadata = metadata.Parent) != null); return null; }
public RawVolume(GLib.IVolume volume, Manager manager, GioVolumeMetadataSource gioMetadata, UdevMetadataSource udevMetadata) : base(manager, gioMetadata, udevMetadata) { Volume = volume; }
public RawBlockDevice(GLib.Drive drive, Manager manager, GioDriveMetadetaSource gioMetadata, UdevMetadataSource udevMetadata) : base(manager, gioMetadata, udevMetadata) { Drive = drive; }
public RawUsbDevice(Manager manager, GioMetadataSource gioMetadata, UdevMetadataSource udevMetadata) : base(manager, gioMetadata, udevMetadata) { }
public RawVolume(GLib.Volume volume, Manager manager, GioVolumeMetadataSource gioMetadata, UdevMetadataSource udevMetadata) : base(manager, gioMetadata, udevMetadata) { Volume = volume; }