From: Bastian Dehn Date: Wed, 11 Aug 2021 20:01:07 +0000 (+0200) Subject: change: library header file correct X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=8e81b0af200e1d280cb122118d6654bd8d68f5e2;p=discspan.git change: library header file correct --- diff --git a/include/libspandisc.h b/include/libspandisc.h index 1bb9365..7ee389a 100644 --- a/include/libspandisc.h +++ b/include/libspandisc.h @@ -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