Osinfo.Tree – libosinfo-1.0 Reference Manual
Packages
libosinfo-1.0
Osinfo
Tree
architecture
boot_iso_path
has_treeinfo
initrd_path
kernel_path
os
treeinfo_arch
treeinfo_family
treeinfo_variant
treeinfo_version
url
create_from_location
create_from_location_async
create_from_treeinfo
Tree
get_architecture
get_boot_iso_path
get_initrd_path
get_kernel_path
get_os
get_os_variants
get_treeinfo_arch
get_treeinfo_family
get_treeinfo_variant
get_treeinfo_version
get_url
matches
set_os
Tree
Object Hierarchy:
Description:
[
CCode
( type_id =
"osinfo_tree_get_type ()"
) ]
public
class
Tree
:
Entity
Namespace:
Osinfo
Package:
libosinfo-1.0
Content:
Properties:
public
string
architecture
{
owned
get
;
set
; }
The target hardware architecture of this tree.
public
string
boot_iso_path
{
owned
get
;
set
; }
The path to the boot ISO in the install tree
public
bool
has_treeinfo
{
get
;
set
; }
Whether the tree has treeinfo or not
public
string
initrd_path
{
owned
get
;
set
; }
The path to the initrd image in the install tree.
public
string
kernel_path
{
owned
get
;
set
; }
The path to the kernel image in the install tree.
public
Os
os
{
owned
get
;
set
; }
Os information for the current tree.
public
string
treeinfo_arch
{
owned
get
;
set
; }
The treeinfo arch
public
string
treeinfo_family
{
owned
get
;
set
; }
The treeinfo family
public
string
treeinfo_variant
{
owned
get
;
set
; }
The treeinfo variant
public
string
treeinfo_version
{
owned
get
;
set
; }
The treeinfo version
public
string
url
{
owned
get
;
set
; }
The URL to this tree.
Static methods:
public
static
Tree
create_from_location
(
string
location,
Cancellable
? cancellable =
null
)
throws
Error
Creates a new
Tree
for installation tree at
location
.
public
static
async
Tree
create_from_location_async
(
string
location,
int
priority,
Cancellable
? cancellable)
throws
Error
Asynchronous variant of
create_from_location
.
public
static
Tree
create_from_treeinfo
(
string
treeinfo,
string
location)
throws
Error
Creates a new
Tree
for installation tree represented by
treeinfo
.
Creation methods:
public
Tree
(
string
id,
string
architecture)
Create a new tree entity
Methods:
public
unowned
string
get_architecture
()
Retrieves the target hardware architecture of the OS
this
provides.
public
unowned
string
get_boot_iso_path
()
Retrieves the path to the boot_iso image in the install tree.
public
unowned
string
get_initrd_path
()
Retrieves the path to the initrd image in the install tree.
public
unowned
string
get_kernel_path
()
Retrieves the path to the kernel image in the install tree.
public
Os
get_os
()
public
OsVariantList
get_os_variants
()
Gets the variants of the associated operating system.
public
unowned
string
get_treeinfo_arch
()
If
this
has treeinfo, this function retrieves the expected architecture.
public
unowned
string
get_treeinfo_family
()
If
this
has treeinfo, this function retrieves the expected family.
public
unowned
string
get_treeinfo_variant
()
If
this
has treeinfo, this function retrieves the expected variant.
public
unowned
string
get_treeinfo_version
()
If
this
has treeinfo, this function retrieves the expected version.
public
unowned
string
get_url
()
The URL to the
this
public
bool
matches
(
Tree
reference)
Determines whether the metadata for the unidentified
this
is a match for the
reference
tree.
public
void
set_os
(
Os
os)
Sets the
Os
associated to the
Tree
instance.
Inherited Members:
All known members inherited from class Osinfo.Entity
add_param
clear_param
get_id
get_param_keys
get_param_value
get_param_value_boolean
get_param_value_boolean_with_default
get_param_value_enum
get_param_value_int64
get_param_value_int64_with_default
get_param_value_list
id
set_param
set_param_boolean
set_param_enum
set_param_int64
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref