aboutsummaryrefslogtreecommitdiff
path: root/src/restore.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/restore.h
parent2779ab6ad42359338f61df0e2ea29abcaf48d806 (diff)
Rewrite the backup and restore code in object-oriented way
Diffstat (limited to 'src/restore.h')
-rw-r--r--src/restore.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/restore.h b/src/restore.h
index 457ef48..0ea9549 100644
--- a/src/restore.h
+++ b/src/restore.h
@@ -29,6 +29,15 @@
#include "options.h"
-int restore(const OptionsRestore &opts);
+class RestoreError : public std::runtime_error
+{
+ public:
+ explicit RestoreError(const std::string &message)
+ : std::runtime_error(message)
+ {
+ }
+};
+
+void restore(const OptionsRestore &opts);
#endif /* RESTORE_H */