Go to the source code of this file.
Functions | |
struct ExpandoNode * | node_new (void) |
Create a new empty ExpandoNode. | |
void | node_free (struct ExpandoNode **ptr) |
Free an ExpandoNode and its private data. | |
void | node_add_child (struct ExpandoNode *node, struct ExpandoNode *child) |
Add a child to an ExpandoNode. | |
struct ExpandoNode * | node_get_child (const struct ExpandoNode *node, int index) |
Get a child of an ExpandoNode. | |
struct ExpandoNode * | node_last (struct ExpandoNode *node) |
Find the last Node in a tree. | |
Basic Expando Node.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file node.c.
struct ExpandoNode * node_new | ( | void | ) |
Create a new empty ExpandoNode.
ptr | New ExpandoNode |
Definition at line 39 of file node.c.
void node_free | ( | struct ExpandoNode ** | ptr | ) |
Free an ExpandoNode and its private data.
ptr | Node to free |
Definition at line 48 of file node.c.
void node_add_child | ( | struct ExpandoNode * | node, |
struct ExpandoNode * | child | ||
) |
Add a child to an ExpandoNode.
node | Parent node |
child | Child node |
Definition at line 76 of file node.c.
struct ExpandoNode * node_get_child | ( | const struct ExpandoNode * | node, |
int | index | ||
) |
Get a child of an ExpandoNode.
node | Parent node |
index | Index of child to get |
ptr | Child node |
NULL | No child, or index out of range |
Definition at line 91 of file node.c.
struct ExpandoNode * node_last | ( | struct ExpandoNode * | node | ) |
Find the last Node in a tree.
node | Root Node |
ptr | Last Node |
Definition at line 108 of file node.c.