Media
Object Hierarchy:
Description:
Namespace: Osinfo
Package: libosinfo-1.0
Content:
Properties:
- public string application_id { owned get; set; }
Expected application ID (regular expression) for ISO9660 image/device.
- public string architecture { owned get; set; }
The target hardware architecture of this media.
- public bool eject_after_install { get; set; }
Whether the media should be ejected after the installation process.
- public string initrd_path { owned get; set; }
The path to the initrd image in the install tree.
- public bool installer { get; set; }
Whether media provides an installer for an OS.
- public int installer_reboots { get; set; }
If media is an installer, this property indicates the number of reboots the installer takes before installation is complete.
- public bool installer_script { get; set; }
Whether the media supports installation via an install-script.
- public string kernel_path { owned get; set; }
The path to the kernel image in the install tree.
- public List<unowned string> languages { owned get; }
If media is an installer, this property indicates the languages that can be used during automatic installations.
- public bool live { get; set; }
Whether media can boot directly an OS without any installations.
- public Os os { owned get; set; }
Os information for the current media.
- public string publisher_id { owned get; set; }
Expected publisher ID (regular expression) for ISO9660 image/device.
- public string system_id { owned get; set; }
Expected system ID (regular expression) for ISO9660 image/device.
- public string url { owned get; set; }
The URL to this media.
- public string volume_id { owned get; set; }
Expected volume ID (regular expression) for ISO9660 image/device.
- public int64 volume_size { get; set; }
Expected volume size, in bytes for ISO9660 image/device.
Static methods:
- public static Media create_from_location (string location, Cancellable? cancellable = null) throws Error
Creates a new Media for installation media at
location
. - public static async Media create_from_location_async (string location, int priority, Cancellable? cancellable) throws Error
Asynchronous variant of create_from_location.
- public static Media create_from_location_with_flags (string location, Cancellable? cancellable, uint flags) throws Error
Creates a new Media for installation media at
location
. - public static async Media create_from_location_with_flags_async (string location, int priority, Cancellable? cancellable, uint flags) throws Error
Asynchronous variant of create_from_location_with_flags.
Creation methods:
Methods:
- public void add_install_script (InstallScript script)
Adds an
script
to the specified this - public unowned string get_application_id ()
If this is an ISO9660 image/device, this function retrieves the expected application ID.
- public unowned string get_architecture ()
Retrieves the target hardware architecture of the OS this provides.
- public bool get_eject_after_install ()
Whether this should ejected after the installation procces.
- public unowned string get_initrd_path ()
Retrieves the path to the initrd image in the install tree.
- public InstallScriptList get_install_script_list ()
- public bool get_installer ()
Whether this provides an installer for an OS.
- public int get_installer_reboots ()
If media is an installer, this method retrieves the number of reboots the installer takes before installation is complete.
- public unowned string get_kernel_path ()
Retrieves the path to the kernel image in the install tree.
- public List<unowned string> get_languages ()
If media is an installer, this property indicates the languages that can be used during automatic installations.
- public bool get_live ()
Whether this can boot directly an OS without any installations.
- public Os get_os ()
- public OsVariantList get_os_variants ()
Gets the variants of the associated operating system.
- public unowned string get_publisher_id ()
If this is an ISO9660 image/device, this function retrieves the expected publisher ID.
- public unowned string get_system_id ()
If this is an ISO9660 image/device, this function retrieves the expected system ID.
- public unowned string get_url ()
The URL to the this
- public unowned string get_volume_id ()
If this is an ISO9660 image/device, this function retrieves the expected volume ID.
- public int64 get_volume_size ()
- public bool is_bootable ()
- public bool matches (Media reference)
Determines whether the metadata for the unidentified this is a match for the
reference
media. - public bool supports_installer_script ()
Whether this supports installation using install scripts.
Inherited Members:
All known members inherited from class Osinfo.Entity
All known members inherited from class GLib.Object