]> gitweb.hhaalo.de Git - discspan.git/commitdiff
change: library header file correct
authorBastian Dehn <hhaalo@arcor.de>
Wed, 11 Aug 2021 20:01:07 +0000 (22:01 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 11 Aug 2021 20:01:07 +0000 (22:01 +0200)
include/libspandisc.h

index 1bb9365eb01cd7dbf0119918829a0472cd85444e..7ee389ae55b99f3dd9a52520f36493111f0641c6 100644 (file)
@@ -1,9 +1,32 @@
 #ifndef LIBSPANDISC_H
 #define LIBSPANDISC_H
 
-#include "spandisc.h"
-#include "logic.h"
-#include "splitter.h"
-#include "filehandler.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;
+
+void read_input_file(const char *input, medium_t *srcdata);
+void write_output_file(const char *output, medium_t disc);
+
+void (*status_print)(const char *output, medium_t disc);
+void run(const char *input, const char *output, unsigned long long split);
+
+medium_t splitter(medium_t *srcdata);
+medium_t ignore(medium_t *srcdata);
+collection_t split_all(medium_t *srcdata);
 
 #endif