Symbol comprehension

Symbol comprehension — Used to get information about Interpretation and/or Manifestation symbols

Synopsis

#include <zeitgeist.h>

GList *             zeitgeist_symbol_get_all_children   (const gchar *symbol);
GList *             zeitgeist_symbol_get_children       (const gchar *symbol);
GList *             zeitgeist_symbol_get_parents        (const gchar *symbol);
gboolean            zeitgeist_symbol_is_a               (const gchar *symbol,
                                                         const gchar *parent);

Description

Details

zeitgeist_symbol_get_all_children ()

GList *             zeitgeist_symbol_get_all_children   (const gchar *symbol);

Gets list of all children of the specified symbol.

symbol :

A symbol.

Returns :

A newly allocated list of all children of this symbol (includes also children of children recursively). The data elements of the list contain strings which you do not own, use g_strdup() if you intend to work with them. Free the list with a call to g_list_free().

zeitgeist_symbol_get_children ()

GList *             zeitgeist_symbol_get_children       (const gchar *symbol);

Gets list of immediate children of the specified symbol.

symbol :

A symbol.

Returns :

A newly allocated list of immediate children of this symbol. The data elements of the list contain strings which you do not own, use g_strdup() if you intend to work with them. Free the list with a call to g_list_free().

zeitgeist_symbol_get_parents ()

GList *             zeitgeist_symbol_get_parents        (const gchar *symbol);

Gets list of immediate parents of the specified symbol.

symbol :

A symbol.

Returns :

A newly allocated list of immediate parents of this symbol. The data elements of the list contain strings which you do not own, use g_strdup() if you intend to work with them. Free the list with a call to g_list_free().

zeitgeist_symbol_is_a ()

gboolean            zeitgeist_symbol_is_a               (const gchar *symbol,
                                                         const gchar *parent);

Determines if symbol is child of parent.

symbol :

A symbol.

parent :

Parent symbol.

Returns :

True if symbol is child of parent (or equal to parent), FALSE otherwise.