![]() |
![]() |
![]() |
Libosinfo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct OsinfoDeployment; struct OsinfoDeploymentClass; OsinfoDeviceLink * osinfo_deployment_add_device (OsinfoDeployment *deployment
,OsinfoDevice *dev
); OsinfoDeviceLinkList * osinfo_deployment_get_device_links (OsinfoDeployment *deployment
,OsinfoFilter *filter
); OsinfoDeviceList * osinfo_deployment_get_devices (OsinfoDeployment *deployment
,OsinfoFilter *filter
); OsinfoOs * osinfo_deployment_get_os (OsinfoDeployment *deployment
); OsinfoPlatform * osinfo_deployment_get_platform (OsinfoDeployment *deployment
); OsinfoDevice * osinfo_deployment_get_preferred_device (OsinfoDeployment *deployment
,OsinfoFilter *filter
); OsinfoDeviceLink * osinfo_deployment_get_preferred_device_link (OsinfoDeployment *deployment
,OsinfoFilter *filter
); OsinfoDeployment * osinfo_deployment_new (const gchar *id
,OsinfoOs *os
,OsinfoPlatform *platform
);
"os" OsinfoOs* : Read / Write / Construct Only "platform" OsinfoPlatform* : Read / Write / Construct Only
OsinfoDeployment is an entity representing an virtualization deployment. Deployments have a list of supported devices
struct OsinfoDeploymentClass { OsinfoEntityClass parent_class; /* class members */ };
OsinfoDeviceLink * osinfo_deployment_add_device (OsinfoDeployment *deployment
,OsinfoDevice *dev
);
Associate a device with a deployment. The returned OsinfoDeviceLink can be used to record extra metadata against the link
|
a deployment entity |
|
the device to associate. [transfer none] |
Returns : |
the device association. [transfer none] |
OsinfoDeviceLinkList * osinfo_deployment_get_device_links (OsinfoDeployment *deployment
,OsinfoFilter *filter
);
Retrieve all the associated devices matching the filter. The filter matches against the link, not the device.
|
a deployment entity |
|
an optional filter. [transfer none][allow-none] |
Returns : |
a list of OsinfoDevice entities. [transfer full] |
OsinfoDeviceList * osinfo_deployment_get_devices (OsinfoDeployment *deployment
,OsinfoFilter *filter
);
Retrieve all the associated devices matching the filter. The filter matches against the device, not the link.
|
a deployment entity |
|
an optional filter. [transfer none][allow-none] |
Returns : |
a list of OsinfoDevice entities. [transfer full] |
OsinfoOs * osinfo_deployment_get_os (OsinfoDeployment *deployment
);
Get the operating system for the deployment
|
the deployment entity |
Returns : |
an OS, or NULL. [transfer none] |
OsinfoPlatform * osinfo_deployment_get_platform (OsinfoDeployment *deployment
);
Get the platform for the deployment
|
the deployment entity |
Returns : |
a platform, or NULL. [transfer none] |
OsinfoDevice * osinfo_deployment_get_preferred_device (OsinfoDeployment *deployment
,OsinfoFilter *filter
);
Get the preferred device matching a given filter
|
the deployment entity |
|
a device metadata filter. [transfer none][allow-none] |
Returns : |
a device, or NULL. [transfer none] |
OsinfoDeviceLink * osinfo_deployment_get_preferred_device_link (OsinfoDeployment *deployment
,OsinfoFilter *filter
);
Get the preferred device link matching a given filter and platform. The filter matches against attributes on the link, not the device.
|
the deployment entity |
|
a device metadata filter. [transfer none][allow-none] |
Returns : |
a device, or NULL. [transfer none] |
OsinfoDeployment * osinfo_deployment_new (const gchar *id
,OsinfoOs *os
,OsinfoPlatform *platform
);
Create a new deployment entity
|
the unique identifier |
|
the operating system to deploy |
|
the platform to deploy on |
Returns : |
A deployment entity. [transfer full] |
"os"
property"os" OsinfoOs* : Read / Write / Construct Only
The operating system to be deployed
"platform"
property"platform" OsinfoPlatform* : Read / Write / Construct Only
The platform to deploy on