summaryrefslogtreecommitdiff
path: root/inc/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/utils.h')
-rwxr-xr-xinc/utils.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/inc/utils.h b/inc/utils.h
new file mode 100755
index 0000000..8492179
--- /dev/null
+++ b/inc/utils.h
@@ -0,0 +1,17 @@
+#ifndef UTILS_H
+#define UTILS_H
+
+#include <panel.h>
+#include "slices.h"
+
+struct progArgs {
+ char *src, *dst, *ddOpts, *dump;
+ address_t beginSector, endSector, blockSize;
+};
+
+int parseArgs(int argc, char **argv, struct progArgs *args);
+void usage(char *progname);
+int cursesInit(WINDOW *wins[], PANEL *panels[], int count);
+void cursesUnInit(WINDOW *wins[], PANEL *panels[], int count);
+
+#endif /*UTILS_H*/