| Libosinfo Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct OsinfoPlatform; struct OsinfoPlatformClass; OsinfoPlatform * osinfo_platform_new (const gchar *id); OsinfoDeviceList * osinfo_platform_get_devices (OsinfoPlatform *platform,OsinfoFilter *filter); OsinfoDeviceLinkList * osinfo_platform_get_device_links (OsinfoPlatform *platform,OsinfoFilter *filter); OsinfoDeviceLink * osinfo_platform_add_device (OsinfoPlatform *platform,OsinfoDevice *dev);
OsinfoPlatform is an entity representing an virtualization platform. Platforms have a list of supported devices
struct OsinfoPlatformClass {
OsinfoProductClass parent_class;
/* class members */
};
OsinfoPlatform * osinfo_platform_new (const gchar *id);
Create a new platform entity
|
a unique identifier |
Returns : |
A platform entity. [transfer full] |
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.
|
a platform entity |
|
an optional filter. [transfer none][allow-none] |
Returns : |
a list of OsinfoDevice entities. [transfer full] |
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.
|
a platform entity |
|
an optional filter. [transfer none][allow-none] |
Returns : |
a list of OsinfoDevice entities. [transfer full] |
OsinfoDeviceLink * osinfo_platform_add_device (OsinfoPlatform *platform,OsinfoDevice *dev);
Associate a device with a platform. The returned OsinfoDeviceLink can be used to record extra metadata against the link
|
a platform entity |
|
the device to associate. [transfer none] |
Returns : |
the device association. [transfer none] |