aboutsummaryrefslogtreecommitdiff
path: root/src/backup.h
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2024-03-31 12:25:35 +0200
committerJán Sučan <jan@jansucan.com>2024-03-31 12:28:24 +0200
commit9f0e7e0cb8a3599d7b2be13f34963f7baf9158e7 (patch)
treef7fa458aeb803b110d34541a1ea0316360f7ce6e /src/backup.h
parent2779ab6ad42359338f61df0e2ea29abcaf48d806 (diff)
Rewrite the backup and restore code in object-oriented way
Diffstat (limited to 'src/backup.h')
-rw-r--r--src/backup.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backup.h b/src/backup.h
index 9629cb7..289ee62 100644
--- a/src/backup.h
+++ b/src/backup.h
@@ -29,6 +29,15 @@
#include "options.h"
-int backup(const OptionsBackup &opts);
+class BackupError : public std::runtime_error
+{
+ public:
+ explicit BackupError(const std::string &message)
+ : std::runtime_error(message)
+ {
+ }
+};
+
+void backup(const OptionsBackup &opts);
#endif /* BACKUP_H */