From 261ec98c16ed512529472218fee3bf6db298a748 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 6 Mar 2011 10:52:03 +0000 Subject: Rush du dimanche matin. Beaucoup de choses écrites et pas testée ni finies mais ça avance. A relire !! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@8 d3078510-dda0-49f1-841c-895ef4b7ec81 --- inc/slices.h | 2 +- inc/util.h | 10 ---------- inc/utils.h | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 11 deletions(-) delete mode 100755 inc/util.h create mode 100755 inc/utils.h (limited to 'inc') diff --git a/inc/slices.h b/inc/slices.h index 5e56269..78fb4c7 100755 --- a/inc/slices.h +++ b/inc/slices.h @@ -31,7 +31,7 @@ int sliceSplit(slices_t *slices, slice_t *initialSlice, address_t splitAt, slice slices_t *slicesNewEmpty(); -slices_t *sliceNewSingleton(address_t begin, address_t end, sliceStatus_t status); +slices_t *slicesNewSingleton(address_t begin, address_t end, sliceStatus_t status); void slicesAppend(slices_t *slices, slice_t *slice); diff --git a/inc/util.h b/inc/util.h deleted file mode 100755 index 0724e72..0000000 --- a/inc/util.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef UTIL_H -#define UTIL_H - -#include "slices.h" - -int parseArgs(int argc, char **argv, char *src, char *dst, char *ddOpts, address_t *beginSector, address_t *endSector); - -void usage(); - -#endif /*UTIL_H*/ diff --git a/inc/utils.h b/inc/utils.h new file mode 100755 index 0000000..c045b83 --- /dev/null +++ b/inc/utils.h @@ -0,0 +1,15 @@ +#ifndef UTILS_H +#define UTILS_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); + +#endif /*UTILS_H*/ -- cgit v1.2.3