mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
New function to deep-copy a GNode and its children. (#93464, James M.
Sun Feb 22 00:47:04 2004 Matthias Clasen <maclas@gmx.de> * glib/gnode.c (g_node_copy_deep): New function to deep-copy a GNode and its children. (#93464, James M. Cape)
This commit is contained in:
committed by
Matthias Clasen
parent
e21dadd6f3
commit
c0b5617ae9
@@ -1,3 +1,11 @@
|
||||
Sun Feb 22 00:59:11 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/tmpl/trees-nary.sgml: Document GCopyFunc.
|
||||
|
||||
Sun Feb 22 00:54:17 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* glib/glib-sections.txt: Add GCopyFunc and g_node_copy_deep.
|
||||
|
||||
2004-02-18 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/glib-sections.txt: Add the new g_rand_* functions
|
||||
|
@@ -1699,6 +1699,8 @@ g_tree_destroy
|
||||
GNode
|
||||
g_node_new
|
||||
g_node_copy
|
||||
GCopyFunc
|
||||
g_node_copy_deep
|
||||
|
||||
<SUBSECTION>
|
||||
g_node_insert
|
||||
|
@@ -83,13 +83,35 @@ Used to create the first node in a tree.
|
||||
<!-- ##### FUNCTION g_node_copy ##### -->
|
||||
<para>
|
||||
Recursively copies a #GNode (but does not deep-copy the data inside the nodes,
|
||||
since there's no way for GLib to know how to do that).
|
||||
see g_node_copy_deep() if you need that).
|
||||
</para>
|
||||
|
||||
@node: a #GNode.
|
||||
@Returns: a new #GNode containing the same data pointers.
|
||||
|
||||
|
||||
<!-- ##### USER_FUNCTION GCopyFunc ##### -->
|
||||
<para>
|
||||
A function of this signature is used to copy the node data when doing a deep-copy
|
||||
of a tree.
|
||||
</para>
|
||||
|
||||
@src: A pointer to the data which should be copied.
|
||||
@data: Additional data.
|
||||
@Returns: A pointer to the copy.
|
||||
@Since: 2.4
|
||||
|
||||
<!-- ##### FUNCTION g_node_copy_deep ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@node:
|
||||
@copy_func:
|
||||
@data:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION g_node_insert ##### -->
|
||||
<para>
|
||||
Inserts a #GNode beneath the parent at the given position.
|
||||
|
Reference in New Issue
Block a user