diff


Description:

public bool diff (Setting b, SettingCompareFlags flags, bool invert_results, ref HashTable<string,uint32> results)

Compares two Setting objects for similarity, with comparison behavior modified by a set of flags.

See the documentation for SettingCompareFlags for a description of each flag's behavior. If the settings differ, the keys of each setting that differ from the other are added to results, mapped to one or more SettingDiffResult values.

Parameters:

this

a Setting

b

a second Setting to compare with the first

flags

compare flags, e.g. EXACT

invert_results

this parameter is used internally by libnm-util and should be set to false. If true inverts the meaning of the SettingDiffResult.

results

if the settings differ, on return a hash table mapping the differing keys to one or more SettingDiffResult values OR-ed together. If the settings do not differ, any hash table passed in is unmodified. If no hash table is passed in and the settings differ, a new one is created and returned.

Returns:

true if the settings contain the same values, false if they do not




2022 vala-language.org