Expose replace mode.

This commit is contained in:
Vreixo Formoso 2008-01-26 21:05:41 +01:00
parent b0a6286f90
commit 0131ce5ff0
2 changed files with 24 additions and 0 deletions

View File

@ -1691,6 +1691,20 @@ void iso_tree_set_ignore_hidden(IsoImage *image, int skip);
*/
int iso_tree_get_ignore_hidden(IsoImage *image);
/**
* Set the replace mode, that defines the behavior of libisofs when adding
* a node whit the same name that an existent one, during a recursive
* directory addition.
*/
void iso_tree_set_replace_mode(IsoImage *image, enum iso_replace_mode mode);
/**
* Get current setting for replace_mode.
*
* @see iso_tree_set_replace_mode
*/
enum iso_replace_mode iso_tree_get_replace_mode(IsoImage *image);
/**
* Set whether to skip or not special files. Default behavior is to not skip
* them. Note that, despite of this setting, special files won't never be added

View File

@ -294,6 +294,16 @@ int iso_tree_get_ignore_hidden(IsoImage *image)
return image->ignore_hidden;
}
void iso_tree_set_replace_mode(IsoImage *image, enum iso_replace_mode mode)
{
image->replace = mode;
}
enum iso_replace_mode iso_tree_get_replace_mode(IsoImage *image)
{
return image->replace;
}
/**
* Set whether to skip or not special files. Default behavior is to not skip
* them. Note that, despite of this setting, special files won't never be added