libardour: add FileSource::mark_removable()

This might not actually be necessary, but the symmetry is nice
This commit is contained in:
Paul Davis
2025-12-29 15:40:01 -07:00
parent 4c5ed82045
commit 30de221be5
2 changed files with 7 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ public:
void mark_immutable ();
void mark_immutable_except_write();
void mark_nonremovable ();
void mark_removable ();
bool within_session () const { return _within_session; }
uint16_t channel() const { return _channel; }

View File

@@ -527,6 +527,12 @@ FileSource::mark_nonremovable ()
_flags = Flag (_flags & ~(Removable|RemovableIfEmpty|RemoveAtDestroy));
}
void
FileSource::mark_removable ()
{
_flags = Flag (_flags | (Removable|RemovableIfEmpty|RemoveAtDestroy));
}
void
FileSource::set_within_session_from_path (const std::string& path)
{