Top | ![]() |
![]() |
![]() |
![]() |
OsinfoPlatform * | osinfo_platform_new () |
OsinfoDeviceList * | osinfo_platform_get_devices () |
OsinfoDeviceList * | osinfo_platform_get_all_devices () |
OsinfoDeviceLinkList * | osinfo_platform_get_device_links () |
OsinfoDeviceLink * | osinfo_platform_add_device () |
OsinfoPlatform is an entity representing an virtualization platform. Platforms have a list of supported devices
OsinfoPlatform *
osinfo_platform_new (const gchar *id
);
Create a new platform entity
OsinfoDeviceList * osinfo_platform_get_devices (OsinfoPlatform *platform
,OsinfoFilter *filter
);
Retrieve all the associated devices matching the filter. The filter matches against the device, not the link.
OsinfoDeviceList * osinfo_platform_get_all_devices (OsinfoPlatform *platform
,OsinfoFilter *filter
);
Get all platforms matching a given filter but unlike osinfo_platform_get_devices this function also retrieves devices from all derived and upgraded platforms.
platform |
a platform |
|
filter |
an optional device property filter. |
[allow-none][transfer none] |
Since: 0.2.7
OsinfoDeviceLinkList * osinfo_platform_get_device_links (OsinfoPlatform *platform
,OsinfoFilter *filter
);
Retrieve all the associated devices matching the filter. The filter matches against the link, not the device.