Add utilities cleanup routine.

This commit is contained in:
Ondrej Kozina
2020-04-24 13:05:21 +02:00
committed by Milan Broz
parent 74c943c352
commit 4a43a2773a
6 changed files with 20 additions and 0 deletions

View File

@@ -116,6 +116,9 @@ int tools_wipe_all_signatures(const char *path);
int tools_lookup_crypt_device(struct crypt_device *cd, const char *type,
const char *data_device_path, char *name, size_t name_length);
/* each utility is required to implement it */
void tools_cleanup(void);
/* Log */
#define log_dbg(x...) clogger(NULL, CRYPT_LOG_DEBUG, __FILE__, __LINE__, x)
#define log_std(x...) clogger(NULL, CRYPT_LOG_NORMAL, __FILE__, __LINE__, x)