Top |
#define | OSINFO_OS_PROP_FAMILY |
#define | OSINFO_OS_PROP_DISTRO |
#define | OSINFO_OS_PROP_RELEASE_STATUS |
enum | OsinfoReleaseStatus |
GEnum ╰── OsinfoReleaseStatus GObject ╰── OsinfoEntity ╰── OsinfoProduct ╰── OsinfoOs
OsinfoOs is an entity representing an operating system. Operating systems have a list of supported devices. There are relationships amongst operating systems to declare which are newest releases, which are clones and which are derived from a common ancestry.
OsinfoDeviceList * osinfo_os_get_devices (OsinfoOs *os
,OsinfoFilter *filter
);
Get all devices matching a given filter
OsinfoDeviceList * osinfo_os_get_all_devices (OsinfoOs *os
,OsinfoFilter *filter
);
Get all devices matching a given filter but unlike osinfo_os_get_devices this function also retrieves devices from all derived and cloned operating systems.
OsinfoDeviceList * osinfo_os_get_devices_by_property (OsinfoOs *os
,const char *property
,const char *value
,gboolean inherited
);
A utility function that gets devices found from the list of devices
os
supports, for which the value of property
is value
.
OsinfoDeviceLinkList * osinfo_os_get_device_links (OsinfoOs *os
,OsinfoFilter *filter
);
Get all devices matching a given filter. The filter matches against the links, not the devices.
OsinfoDeviceLink * osinfo_os_add_device (OsinfoOs *os
,OsinfoDevice *dev
);
Associated a device with an operating system. The returned OsinfoDeviceLink can be used to record extra metadata against the link
const gchar *
osinfo_os_get_family (OsinfoOs *os
);
Retrieves the generic family the OS os
belongs to, based upon its kernel,
for example linux, winnt, solaris, freebsd etc.
const gchar *
osinfo_os_get_distro (OsinfoOs *os
);
Retrieves the generic family the OS os
belongs to, for example fedora,
ubuntu, windows, solaris, freebsd etc.
int
osinfo_os_get_release_status (OsinfoOs *os
);
Use this to determine the release status of the os
.
OsinfoMediaList *
osinfo_os_get_media_list (OsinfoOs *os
);
Get all installation medias associated with operating system os
.
void osinfo_os_add_media (OsinfoOs *os
,OsinfoMedia *media
);
Adds installation media media
to operating system os
.
OsinfoTreeList *
osinfo_os_get_tree_list (OsinfoOs *os
);
Get all installation trees associated with operating system os
.
void osinfo_os_add_tree (OsinfoOs *os
,OsinfoTree *tree
);
Adds installation tree tree
to operating system os
.
OsinfoOsVariantList *
osinfo_os_get_variant_list (OsinfoOs *os
);
Gets all known variants of operating system os
.
void osinfo_os_add_variant (OsinfoOs *os
,OsinfoOsVariant *variant
);
Adds a variant variant
to operating system os
.
OsinfoResourcesList *
osinfo_os_get_minimum_resources (OsinfoOs *os
);
Get the list of minimum required resources for the operating system os
.
OsinfoResourcesList *
osinfo_os_get_recommended_resources (OsinfoOs *os
);
Get the list of recommended resources for the operating system os
.
void osinfo_os_add_minimum_resources (OsinfoOs *os
,OsinfoResources *resources
);
Adds resources
to list of minimum resources of operating system os
.
void osinfo_os_add_recommended_resources (OsinfoOs *os
,OsinfoResources *resources
);
Adds resources
to list of recommended resources of operating system os
.
OsinfoInstallScript * osinfo_os_find_install_script (OsinfoOs *os
,const gchar *profile
);
OsinfoInstallScriptList *
osinfo_os_get_install_script_list (OsinfoOs *os
);
void osinfo_os_add_install_script (OsinfoOs *os
,OsinfoInstallScript *script
);
OsinfoDeviceDriverList *
osinfo_os_get_device_drivers (OsinfoOs *os
);
Gets list of all available device drivers for OS os
.
void osinfo_os_add_device_driver (OsinfoOs *os
,OsinfoDeviceDriver *driver
);
“distro”
property“distro” gchar *
The generic distro this OS belongs to, for example fedora, windows, solaris, freebsd etc.
Flags: Read
Default value: NULL
“family”
property“family” gchar *
The generic family this OS belongs to, based upon its kernel, for example linux, winnt, solaris, freebsd etc.
Flags: Read
Default value: NULL