afc_fstree_internal_add

Name

afc_fstree_internal_add  -- Adds a new node to the FST

Synopsis

int afc_fstree_internal_add ( FSTree * fst, char * iname, int kind, void * data );

Description

This function creates a new FSTree "node" and put it in the current FSTree directory.

Inputs

fst

Pointer to a valid FSTree instance.

iname

Name of the node

kind

Kind of node. It can be:

AFC_FSTREE_KIND_FOLDER

For a new directory

AFC_FSTREE_KIND_ITEM

For a new file

Result

See Also