/home/gigerk/eth/sa2/libxpsh-0.0.1/libxpsh/xpsh_child.c File Reference

#include "xpsh_child.h"

Functions

SXP_Node getChildNo_i (SXP_Node node, int n)
 returns the n-th child of the context node
SXP_Node getDirChildNo (node_xpsh *act_node, int n)
 returns the n-th child node of the a node if it's a fsx:dir node.

Detailed Description

Author:
Kaspar Giger
Date:
04-2006

Function Documentation

SXP_Node getChildNo_i SXP_Node  node,
int  n
 

Parameters:
node the context node
n the number of the desired node
Returns:
the node

SXP_Node getDirChildNo node_xpsh act_node,
int  n
 

In other words: select the n-th file of the directory specified by the context node. This function also expands all other children to get a better performance. Because otherwise, each time a next sibling should be returned, the directory is opened an traversed again.

Parameters:
act_node the context node
n the number of the desired node
Returns:
the n-th child node


Generated on Mon Apr 17 18:39:46 2006 for Libxpsh by  doxygen 1.4.6