AXEvent
ax_event_element_item.h
Go to the documentation of this file.
1 
15 #ifndef _AX_EVENT_ELEMENT_ITEM_H_
16 #define _AX_EVENT_ELEMENT_ITEM_H_
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
26 typedef struct _AXEventElementItem AXEventElementItem;
27 
37 ax_event_element_item_new(const gchar *name,
38  const gchar *name_space);
39 
45 void
47 
59 gboolean
61  gchar **name,
62  GError **error);
63 
77 gboolean
79  gchar **name_space,
80  GError **error);
81 
98 gboolean
100  GHashTable *attributes,
101  GError **error);
102 
116 gboolean
118  GHashTable **attributes,
119  GError **error);
120 
131 gboolean
133  const gchar *body,
134  GError **error);
135 
148 gboolean
150  gchar **body,
151  GError **error);
152 
163 gboolean
165  AXEventElementItem *child,
166  GError **error);
167 
180 gboolean
182  AXEventElementItem **child,
183  GError **error);
184 
196 gboolean
198  AXEventElementItem **sibling,
199  GError **error);
200 
201 #ifdef __cplusplus
202 }
203 #endif
204 
205 #endif /* _AX_EVENT_ELEMENT_ITEM_H_ */
gboolean ax_event_element_item_get_name(AXEventElementItem *node, gchar **name, GError **error)
Get the name of an AXEventElementItem.
gboolean ax_event_element_item_set_attributes(AXEventElementItem *node, GHashTable *attributes, GError **error)
Adds attributes to an AXEventElementItem. If called more than once on the same AXEventElementItem, only the attributes provided in the last call are used. The attributes can be removed by providing NULL as attributes.
gboolean ax_event_element_item_set_body(AXEventElementItem *node, const gchar *body, GError **error)
Set the body of an AXEventElementItem.
gboolean ax_event_element_item_get_next_child(AXEventElementItem *child, AXEventElementItem **sibling, GError **error)
Retrieve the sibling of a child.
gboolean ax_event_element_item_get_name_space(AXEventElementItem *node, gchar **name_space, GError **error)
Get the name space of the name of an AXEventElementItem.
gboolean ax_event_element_item_get_first_child(AXEventElementItem *parent, AXEventElementItem **child, GError **error)
Retrieve the first child of an AXEventElementItem.
void ax_event_element_item_free(AXEventElementItem *node)
Frees an AXEventElementItem.
gboolean ax_event_element_item_add_child(AXEventElementItem *node, AXEventElementItem *child, GError **error)
Add an child to an AXEventElementItem.
AXEventElementItem * ax_event_element_item_new(const gchar *name, const gchar *name_space)
Creates a new node in the tree.
struct _AXEventElementItem AXEventElementItem
The AXEventElementItem is a n opaque data type representing a node in a tree.
Definition: ax_event_element_item.h:26
gboolean ax_event_element_item_get_attributes(AXEventElementItem *node, GHashTable **attributes, GError **error)
Get the attributes of an AXEventElementItem.
gboolean ax_event_element_item_get_body(AXEventElementItem *node, gchar **body, GError **error)
Get the body of an AXEventElementItem.