Top |
OsinfoDb is a database tracking all entity instances against which metadata is recorded.
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
);
Find the deployment for os
on platform
, if any.
OsinfoDeploymentList *
osinfo_db_get_deployment_list (OsinfoDb *db
);
OsinfoInstallScriptList *
osinfo_db_get_install_script_list (OsinfoDb *db
);
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
);
osinfo_db_guess_os_from_media
has been deprecated since version 0.2.3 and should not be used in newly-written code.
Use osinfo_db_identify_media()
instead.
Guess operating system given an OsinfoMedia object.
gboolean osinfo_db_identify_media (OsinfoDb *db
,OsinfoMedia *media
);
Try to match a newly created media
with a media description from db
.
If found, media
will be filled with the corresponding information
stored in db
. In particular, after a call to osinfo_db_identify_media()
, if
the media could be identified, its OsinfoEntify::id and OsinfoMedia::os
properties will be set.
OsinfoOs * osinfo_db_guess_os_from_tree (OsinfoDb *db
,OsinfoTree *tree
,OsinfoTree **matched_tree
);
Guess operating system given an OsinfoTree object.
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
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
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
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
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.
OsinfoPlatformList * osinfo_db_unique_values_for_platform_relationship (OsinfoDb *db
,OsinfoProductRelationship relshp
);
Get all platforms that are the referee in an platform relationship.