From: Bastian Dehn Date: Wed, 11 Aug 2021 19:27:18 +0000 (+0200) Subject: rename header file to spandisc X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=c1d9d98a265bc02ef1910be296df8e68a8d3d75b;p=discspan.git rename header file to spandisc --- diff --git a/discspan/discspan.c b/discspan/discspan.c index fce4b6b..64f1494 100644 --- a/discspan/discspan.c +++ b/discspan/discspan.c @@ -2,7 +2,7 @@ #include #include -#include "discspan.h" +#include "spandisc.h" #include "logic.h" #include "help.h" diff --git a/discspan/help.h b/discspan/help.h new file mode 100644 index 0000000..d88fd30 --- /dev/null +++ b/discspan/help.h @@ -0,0 +1,6 @@ +#ifndef _HELP_H +#define _HELP_H + +void usage(); + +#endif diff --git a/include/discspan.h b/include/discspan.h deleted file mode 100644 index 611a78d..0000000 --- a/include/discspan.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef _DISCSPAN_H -#define _DISCSPAN_H - -typedef struct { - char name[255]; - unsigned long long fsize; - unsigned int type; -} file_size_t; - -typedef struct { - int nr; - unsigned long long freespace; - int length; - file_size_t *filearray; -} medium_t; - -typedef struct { - int length; - medium_t *disc; -} collection_t; - -#endif diff --git a/include/help.h b/include/help.h deleted file mode 100644 index d88fd30..0000000 --- a/include/help.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef _HELP_H -#define _HELP_H - -void usage(); - -#endif diff --git a/include/spandisc.h b/include/spandisc.h new file mode 100644 index 0000000..244ee16 --- /dev/null +++ b/include/spandisc.h @@ -0,0 +1,22 @@ +#ifndef _SPANDISC_H +#define _SPANDISC_H + +typedef struct { + char name[255]; + unsigned long long fsize; + unsigned int type; +} file_size_t; + +typedef struct { + int nr; + unsigned long long freespace; + int length; + file_size_t *filearray; +} medium_t; + +typedef struct { + int length; + medium_t *disc; +} collection_t; + +#endif diff --git a/libspandisc/filehandler.c b/libspandisc/filehandler.c index 13e8785..cb209af 100644 --- a/libspandisc/filehandler.c +++ b/libspandisc/filehandler.c @@ -3,7 +3,7 @@ #include #include -#include "discspan.h" +#include "spandisc.h" #include "filehandler.h" void malloc_array_length(FILE *in, medium_t *srcdata) diff --git a/libspandisc/logic.c b/libspandisc/logic.c index 79da719..837b204 100644 --- a/libspandisc/logic.c +++ b/libspandisc/logic.c @@ -2,7 +2,7 @@ #include #include -#include "discspan.h" +#include "spandisc.h" #include "logic.h" #include "splitter.h" #include "filehandler.h" diff --git a/libspandisc/splitter.c b/libspandisc/splitter.c index d057ea9..54f48a3 100644 --- a/libspandisc/splitter.c +++ b/libspandisc/splitter.c @@ -1,7 +1,8 @@ #include #include #include -#include "discspan.h" + +#include "spandisc.h" #include "splitter.h" #define S_IFREG 0100000 // bitmask for regular file; man inode