| Libosinfo Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct OsinfoDb; struct OsinfoDbClass; OsinfoDb * osinfo_db_new (void); OsinfoPlatform * osinfo_db_get_platform (OsinfoDb *db,const gchar *id); OsinfoDevice * osinfo_db_get_device (OsinfoDb *db,const gchar *id); OsinfoOs * osinfo_db_get_os (OsinfoDb *db,const gchar *id); OsinfoDeployment * osinfo_db_get_deployment (OsinfoDb *db,const gchar *id); OsinfoInstallScript * osinfo_db_get_install_script (OsinfoDb *db,const gchar *id); OsinfoDeployment * osinfo_db_find_deployment (OsinfoDb *db,OsinfoOs *os,OsinfoPlatform *platform); OsinfoOsList * osinfo_db_get_os_list (OsinfoDb *db); OsinfoPlatformList * osinfo_db_get_platform_list (OsinfoDb *db); OsinfoDeviceList * osinfo_db_get_device_list (OsinfoDb *db); OsinfoDeploymentList * osinfo_db_get_deployment_list (OsinfoDb *db); OsinfoInstallScriptList * osinfo_db_get_install_script_list (OsinfoDb *db); void osinfo_db_add_os (OsinfoDb *db,OsinfoOs *os); void osinfo_db_add_platform (OsinfoDb *db,OsinfoPlatform *platform); void osinfo_db_add_device (OsinfoDb *db,OsinfoDevice *device); void osinfo_db_add_deployment (OsinfoDb *db,OsinfoDeployment *deployment); void osinfo_db_add_install_script (OsinfoDb *db,OsinfoInstallScript *script); OsinfoOs * osinfo_db_guess_os_from_media (OsinfoDb *db,OsinfoMedia *media,OsinfoMedia **matched_media); OsinfoOs * osinfo_db_guess_os_from_tree (OsinfoDb *db,OsinfoTree *tree,OsinfoTree **matched_tree); GList * osinfo_db_unique_values_for_property_in_os (OsinfoDb *db,const gchar *propName); GList * osinfo_db_unique_values_for_property_in_platform (OsinfoDb *db,const gchar *propName); GList * osinfo_db_unique_values_for_property_in_device (OsinfoDb *db,const gchar *propName); GList * osinfo_db_unique_values_for_property_in_deployment (OsinfoDb *db,const gchar *propName); OsinfoOsList * osinfo_db_unique_values_for_os_relationship (OsinfoDb *db,OsinfoProductRelationship relshp); OsinfoPlatformList * osinfo_db_unique_values_for_platform_relationship (OsinfoDb *db,OsinfoProductRelationship relshp);
OsinfoDb is a database tracking all entity instances against which metadata is recorded.
OsinfoPlatform * osinfo_db_get_platform (OsinfoDb *db,const gchar *id);
|
the database |
|
the unique platform identifier |
Returns : |
the platform, or NULL if none is found. [transfer none] |
OsinfoDevice * osinfo_db_get_device (OsinfoDb *db,const gchar *id);
|
the database |
|
the unique device identifier |
Returns : |
the device, or NULL if none is found. [transfer none] |
OsinfoOs * osinfo_db_get_os (OsinfoDb *db,const gchar *id);
|
the database |
|
the unique operating system identifier |
Returns : |
the operating system, or NULL if none is found. [transfer none] |
OsinfoDeployment * osinfo_db_get_deployment (OsinfoDb *db,const gchar *id);
|
the database |
|
the unique operating system identifier |
Returns : |
the operating system, or NULL if none is found. [transfer none] |
OsinfoInstallScript * osinfo_db_get_install_script (OsinfoDb *db,const gchar *id);
|
the database |
|
the unique operating system identifier |
Returns : |
the install script, or NULL if none is found. [transfer none] |
OsinfoDeployment * osinfo_db_find_deployment (OsinfoDb *db,OsinfoOs *os,OsinfoPlatform *platform);
Find the deployment for os on platform, if any.
|
the database |
|
the operating system to find |
|
the virtualization platform |
Returns : |
the deployment, or NULL. [transfer none] |
OsinfoOsList * osinfo_db_get_os_list (OsinfoDb *db);
|
the database |
Returns : |
the list of operating systems. [transfer full] |
OsinfoPlatformList * osinfo_db_get_platform_list (OsinfoDb *db);
|
the database |
Returns : |
the list of platforms. [transfer full] |
OsinfoDeviceList * osinfo_db_get_device_list (OsinfoDb *db);
|
the database |
Returns : |
the list of devices. [transfer full] |
OsinfoDeploymentList * osinfo_db_get_deployment_list (OsinfoDb *db);
|
the database |
Returns : |
the list of deployments. [transfer full] |
OsinfoInstallScriptList * osinfo_db_get_install_script_list
(OsinfoDb *db);
|
the database |
Returns : |
the list of install scripts. [transfer full] |
void osinfo_db_add_os (OsinfoDb *db,OsinfoOs *os);
|
the database |
|
an operating system. [transfer none] |
void osinfo_db_add_platform (OsinfoDb *db,OsinfoPlatform *platform);
|
the database |
|
an platform. [transfer none] |
void osinfo_db_add_device (OsinfoDb *db,OsinfoDevice *device);
|
the database |
|
a device. [transfer none] |
void osinfo_db_add_deployment (OsinfoDb *db,OsinfoDeployment *deployment);
|
the database |
|
a deployment. [transfer none] |
void osinfo_db_add_install_script (OsinfoDb *db,OsinfoInstallScript *script);
|
the database |
|
a install script. [transfer none] |
OsinfoOs * osinfo_db_guess_os_from_media (OsinfoDb *db,OsinfoMedia *media,OsinfoMedia **matched_media);
Guess operating system given a OsinfoMedia object.
|
the database |
|
the installation media |
|
the matched operating system media. [out][transfer none][allow-none] |
Returns : |
the operating system, or NULL if guessing failed. [transfer none] |
OsinfoOs * osinfo_db_guess_os_from_tree (OsinfoDb *db,OsinfoTree *tree,OsinfoTree **matched_tree);
Guess operating system given a OsinfoTree object.
|
the database |
|
the installation tree |
|
the matched operating system tree. [out][transfer none][allow-none] |
Returns : |
the operating system, or NULL if guessing failed. [transfer none] |
GList * osinfo_db_unique_values_for_property_in_os (OsinfoDb *db,const gchar *propName);
Get all unique values for a named property amongst all operating systems in the database
|
the database |
|
a property name |
Returns : |
a list of strings. [transfer container][element-type utf8] |
GList * osinfo_db_unique_values_for_property_in_platform (OsinfoDb *db,const gchar *propName);
Get all unique values for a named property amongst all platforms in the database
|
the database |
|
a property name |
Returns : |
a list of strings. [transfer container][element-type utf8] |
GList * osinfo_db_unique_values_for_property_in_device (OsinfoDb *db,const gchar *propName);
Get all unique values for a named property amongst all devices in the database
|
the database |
|
a property name |
Returns : |
a list of strings. [transfer container][element-type utf8] |
GList * osinfo_db_unique_values_for_property_in_deployment (OsinfoDb *db,const gchar *propName);
Get all unique values for a named property amongst all deployments in the database
|
the database |
|
a property name |
Returns : |
a list of strings. [transfer container][element-type utf8] |
OsinfoOsList * osinfo_db_unique_values_for_os_relationship (OsinfoDb *db,OsinfoProductRelationship relshp);
Get all operating systems that are the referee in an operating system relationship.
|
the database |
|
the product relationship |
Returns : |
a list of operating systems. [transfer full] |
OsinfoPlatformList * osinfo_db_unique_values_for_platform_relationship (OsinfoDb *db,OsinfoProductRelationship relshp);
Get all platforms that are the referee in an platform relationship.
|
the database |
|
the product relationship |
Returns : |
a list of virtualization platforms. [transfer full] |