Added more files, mainly beginning of filesystem sources implementation.

This commit is contained in:
Vreixo Formoso
2007-11-24 16:58:36 +01:00
parent 9ee4e39899
commit 6c090c9a7b
10 changed files with 283 additions and 30 deletions

View File

@@ -8,12 +8,33 @@
#ifndef LIBISO_LIBISOFS_H_
#define LIBISO_LIBISOFS_H_
typedef struct Iso_Tree_Node IsoTreeNode;
typedef struct Iso_Node IsoNode;
typedef struct Iso_Dir IsoDir;
/**
* Increments the reference counting of the given node.
*/
void iso_node_ref(IsoTreeNode *node);
void iso_node_ref(IsoNode *node);
/**
* Decrements the reference couting of the given node.
* If it reach 0, the node is free, and, if the node is a directory,
* its children will be unref() too.
*/
void iso_node_unref(IsoNode *node);
/**
* Set the name of a node.
*
* @param name The name in UTF-8 encoding
*/
void iso_node_set_name(IsoNode *node, const char *name);
/**
* Get the name of a node (in UTF-8).
* The returned string belongs to the node and should not be modified nor
* freed. Use strdup if you really need your own copy.
*/
const char *iso_node_get_name(IsoNode *node);
#endif /*LIBISO_LIBISOFS_H_*/