libappstream::functions

Function utils_data_id_match

source
pub fn utils_data_id_match(
    data_id1: &str,
    data_id2: &str,
    match_flags: DataIdMatchFlags,
) -> bool
Expand description

Checks two data IDs for equality allowing globs to match, whilst also allowing clients to whitelist sections that have to match.

§data_id1

a data ID

§data_id2

another data ID

§match_flags

a DataIdMatchFlags bitfield, e.g. DataIdMatchFlags::ID

§Returns

true if the IDs should be considered equal.