Expose replace mode.
This commit is contained in:
parent
b0a6286f90
commit
0131ce5ff0
@ -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
|
||||
|
10
src/tree.c
10
src/tree.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user