/* Callback for function 'g_hash_table_foreach()'. We don't keep references to hash table keys. Keys have memory allocated which must be freed when they are not used anymore. This function finds the reference to a key corresponding to a particular class id. The reference to the key is stored in a global variable.  */
void _cnd_find_hash_key_for_class_id(gpointer key, gpointer value _U_, gpointer user_data)
/* Callback for function 'g_hash_table_foreach()'. We don't keep references to hash table keys. Keys have memory allocated which must be freed when they are not used anymore. This function finds the reference to a key corresponding to a particular class id. The reference to the key is stored in a global variable.  */
void _cnd_find_hash_key_for_class_id(gpointer key, gpointer value _U_, gpointer user_data)
{
  char *class_id  = (char *)user_data;
  char *key_value = (char *)key;
  if (strcmp(class_id, key_value) == 0)
    pkey = key_value;
}