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

#include "xpsh_attr.h"

Functions

SXP_Node getNextAttrNS_i (SXP_Node node)
 returns the next attribute- or namespace-node of the node
SXP_Node getPreviousAttrNS_i (SXP_Node node)
 returns the previous attribute- or namespace-node of the current node
SXP_Node getAttributeNo_i (SXP_Node node, int n)
 returns the n-th attribute of the context node
node_xpshgetFileDirAttributeNo (node_xpsh *act_node, int n, attr_order *attr)
 returns the n-th attribute of the (fsx:file,fsx:dir or fsx:symlink-) context node
void set_canread (node_xpsh *node, struct stat *buf, char *path)
 sets the value of the 'canread' attribute of a file or directory
void set_hidden (node_xpsh *node, struct stat *buf, char *path)
 sets the value of the 'hidden' attribute of a file or directory
void set_name (node_xpsh *node, struct stat *buf, char *path)
 sets the value of the 'name' attribute of a file or directory
void set_size (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'size' attribute of a file
void set_regular (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'regular' attribute of a file
void set_mime (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'mime' attribute of a file
void set_dev (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'dev' attribute of a file
void set_ino (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'ino' attribute of a file
void set_nlink (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'nlink' attribute of a file
void set_uid (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'uid' attribute of a file
void set_gid (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'gid' attribute of a file
void set_blksize (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'blksize' attribute of a file
void set_blocks (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'blocks' attribute of a file
void set_atime (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'atime' attribute of a file
void set_ctime (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'ctime' attribute of a file
void set_mtime (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'mtime' attribute of a file
void set_mode (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'mode' attribute of a file
void set_sticky (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'sticky' attribute of a directory
void set_rdev (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'rdev' attribute of a file
void set_blockdev (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'blockdev' attribute of a file
void set_chardev (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'chardev' attribute of a file
void set_fifo (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'fifo' attribute of a file
void set_socket (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'socket' attribute of a file
void set_target (node_xpsh *node, struct stat *buf, char *path)
 set the value of the 'target' attribute of a symlink "file"

Detailed Description

Author:
Kaspar Giger
Date:
04-2006

Function Documentation

SXP_Node getAttributeNo_i SXP_Node  node,
int  n
 

Parameters:
node the context node
n the index of the desired node
Returns:
the attribute node

node_xpsh* getFileDirAttributeNo node_xpsh act_node,
int  n,
attr_order attr
 

the attributes that have a index number smaller than n and don't exist yet, are also created

Parameters:
act_node the context node
n the number of the desired attribute
attr the array of attributes for the current node
Returns:
the attribute node

SXP_Node getNextAttrNS_i SXP_Node  node  ) 
 

Parameters:
node the node
Returns:
the next attribute- or namespace-node

SXP_Node getPreviousAttrNS_i SXP_Node  node  ) 
 

Parameters:
node the node
Returns:
the previous attribute- or namespace-node

void set_atime node_xpsh node,
struct stat *  buf,
char *  path
 

the syntax is that one of xs:time (from XML-Schema)

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_blksize node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_blockdev node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_blocks node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_canread node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_chardev node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_ctime node_xpsh node,
struct stat *  buf,
char *  path
 

the syntax is that one of xs:time (from XML-Schema)

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_dev node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_fifo node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_gid node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_hidden node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_ino node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_mime node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_mode node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_mtime node_xpsh node,
struct stat *  buf,
char *  path
 

the syntax is that one of xs:time (from XML-Schema)

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_name node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_nlink node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_rdev node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_regular node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_size node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_socket node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_sticky node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_target node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file

void set_uid node_xpsh node,
struct stat *  buf,
char *  path
 

Parameters:
[in,out] node the node to save the information
buf a stat-structure of the file
path the path of the parent directory or file


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