utils_data_id_hash
Description:
Converts a data-id to a hash value.
This function implements the widely used DJB hash on the ID subset of the data-id string.
It can be passed to g_hash_table_new
as the hash_func parameter, when using non-NULL strings or unique_ids as keys in a
GHashTable.
Parameters:
data_id |
a data ID |
Returns:
a hash value corresponding to the key |
Namespace: AppStream
Package: appstream