DMS are now locked when used by a command. Added checks and changed

cleaning mechanisms.
This commit is contained in:
Celine Mercier
2019-09-20 20:37:19 +02:00
parent eb6c59dc1e
commit 783a1343c4
14 changed files with 378 additions and 28 deletions

View File

@ -565,6 +565,21 @@ int obi_view_add_comment(Obiview_p view, const char* key, const char* value);
int obi_save_and_close_view(Obiview_p view);
/**
* @brief Goes through all the view files of a DMS and checks for views that have
* not been flagged as finished (file extension renamed from '.obiview_unfinished'
* to '.obiview' and finished boolean set to true in the file, done by finish_view()).
*
* @param dms A pointer on an OBIDMS.
*
* @returns A boolean indicating whether unfinished views were found.
*
* @since September 2019
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*/
int obi_dms_has_unfinished_views(OBIDMS_p dms);
/**
* @brief Goes through all the view files of a DMS and deletes views that have
* not been flagged as finished (file extension renamed from '.obiview_unfinished'