mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-02 19:59:21 +02:00
Macro to insert a new GNode "after" the given sibling.
https://bugzilla.gnome.org/show_bug.cgi?id=626258 Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>
This commit is contained in:
committed by
Matthias Clasen
parent
aa95853f9c
commit
e9725d1656
13
glib/gnode.h
13
glib/gnode.h
@@ -168,6 +168,19 @@ GNode* g_node_find (GNode *root,
|
||||
#define g_node_insert_data(parent, position, data) \
|
||||
g_node_insert ((parent), (position), g_node_new (data))
|
||||
|
||||
/**
|
||||
* g_node_insert_data_after:
|
||||
* @parent: the #GNode to place the new #GNode under
|
||||
* @sibling: the sibling #GNode to place the new #GNode after
|
||||
* @data: the data for the new #GNode
|
||||
*
|
||||
* Inserts a new #GNode after the given sibling.
|
||||
*
|
||||
* Returns: the new #GNode
|
||||
*/
|
||||
|
||||
#define g_node_insert_data_after(parent, sibling, data) \
|
||||
g_node_insert_after ((parent), (sibling), g_node_new (data))
|
||||
/**
|
||||
* g_node_insert_data_before:
|
||||
* @parent: the #GNode to place the new #GNode under
|
||||
|
Reference in New Issue
Block a user