identify_media


Description:

[ Version ( since = "0.2.3" ) ]
public bool identify_media (Media media)

Try to match a newly created media with a media description from this.

If found, media will be filled with the corresponding information stored in this. In particular, after a call to identify_media, if the media could be identified, its OsinfoEntify: OsinfoDb:id and OsinfoMedia:OsinfoDb:oss properties will be set.

The match for media in this is not guaranteed to be unique and this method will only return the first match found. The order in which matches are identified is not guaranteed, so when there are multiple matches, the returned match may vary over time. Applications are recommended to use the osinfo_db_identify_all_media method instead to receive all matched media.

Parameters:

this

an Db database

media

the installation media data

Returns:

TRUE if media was found in this, FALSE otherwise




2022 vala-language.org