All pastes #25313 Raw Edit

Unnamed

public text v1 · immutable
#25313 ·published 2005-10-12 12:35 UTC
rendered paste body
void print_attributes (char *key, char *value, char *userdata)
{
  if (key && value)
    g_print ("\t|-------%s = %s\n", key, value);
}

void print_component (char *key, GHashTable *component, char *userdata)
{
  if (key)
    g_print ("|-------%s\n", key);
  g_hash_table_foreach (component, (GHFunc)&print_attributes, userdata);
}

void print_context (char *key, GHashTable *context, char *userdata)
{
  if (key)
    g_print (":%s:\n", key);
  g_hash_table_foreach (context, (GHFunc)&print_component, userdata);
}