#include <stdlib.h>
#include <unistd.h>
-#include "spandisc.h"
-#include "logic.h"
+#include "libspandisc.h"
#include "help.h"
extern void useage();
+++ /dev/null
-#ifndef _FILEHANDLER_H
-#define _FILEHANDLER_H
-
-void read_input_file(const char *input, medium_t *srcdata);
-
-void write_output_file(const char *output, medium_t disc);
-
-#endif
#ifndef LIBSPANDISC_H
#define LIBSPANDISC_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);
+#include "../libspandisc/spandisc.h"
+#include "../libspandisc/logic.h"
+#include "../libspandisc/splitter.h"
+#include "../libspandisc/filehandler.h"
#endif
+++ /dev/null
-#ifndef _LOGIC_H
-#define _LOGIC_H
-
-void (*status_print)(const char *output, medium_t disc);
-
-void run(const char *input, const char *output, unsigned long long split);
-
-#endif
+++ /dev/null
-#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
+++ /dev/null
-#ifndef _SPLITTER_H
-#define _SPLITTER_H
-
-medium_t splitter(medium_t *srcdata);
-medium_t ignore(medium_t *srcdata);
-collection_t split_all(medium_t *srcdata);
-
-#endif
--- /dev/null
+#ifndef _FILEHANDLER_H
+#define _FILEHANDLER_H
+
+void read_input_file(const char *input, medium_t *srcdata);
+
+void write_output_file(const char *output, medium_t disc);
+
+#endif
--- /dev/null
+#ifndef _LOGIC_H
+#define _LOGIC_H
+
+void (*status_print)(const char *output, medium_t disc);
+
+void run(const char *input, const char *output, unsigned long long split);
+
+#endif
--- /dev/null
+#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
--- /dev/null
+#ifndef _SPLITTER_H
+#define _SPLITTER_H
+
+medium_t splitter(medium_t *srcdata);
+medium_t ignore(medium_t *srcdata);
+collection_t split_all(medium_t *srcdata);
+
+#endif