Add function to add an exiting file to the iso tree.

Node is created using a builder. Default builder and filesystem is added 
to IsoImage. Later we should expose setters for this atts.
This commit is contained in:
Vreixo Formoso
2007-12-07 03:02:46 +01:00
parent c93fa154d5
commit 45f4d0a29e
5 changed files with 221 additions and 7 deletions

View File

@ -33,10 +33,11 @@ struct Iso_Filesystem
*/
int (*get_root)(IsoFilesystem *fs, IsoFileSource **root);
/**
*
*
*/
/**
*
* @return
* 1 success, < 0 error
*/
int (*get_by_path)(IsoFilesystem *fs, const char *path,
IsoFileSource **file);
@ -208,8 +209,7 @@ struct Iso_File_Source
* TODO #00004 Add a get_mime_type() function.
* This can be useful for GUI apps, to choose the icon of the file
*/
//TODO define the refcount behavior for FileSources.
int refcount;
void *data;
};