Names and NameSet Operations
A name set is a set of unique names (i.e. - no duplicates). These
sets are used in conjunction with the on_synch_diff_cb callback
function.
rht_name_cmp is a comparison function for rht_name.
It performs a strncmp on the two strings.
rht_nset_size returns the number of names in a name set.
rht_nset_contains returns true (non-zero) if the name
set nset contains the name name, or false (zero) otherwise.
rht_nset_get_it performs a lookup of name in nset
and initializes it to reference the name if found, or a special
"end" entry if not. The function returns it.
rht_nset_begin initializes it to reference the
first name in nset or the special "end" entry if
the set is empty.
rht_nset_end initializes it to reference the special
"end" entry of nset.
rht_nset_it_val returns a pointer to the name that it
is referencing.
rht_nset_it_eq compares two name set iterators for equality
and returns true (non-zero) if they are referencing the same position
in the same set and false (zero) otherwise.
rht_nset_it_next advances it to reference the next
entry in the name set nset. It is illegal to call rht_nset_it_next
on the special "end" entry of a name set.
|