fix: bring project back to a working state

This commit is contained in:
Theo Tappe
2026-07-04 17:55:03 +02:00
parent 75d5f91c6a
commit 4d6171d6bf
17 changed files with 315 additions and 226 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef FILE_H
#define FILE_H
#include "data.h"
#include <sys/stat.h>
typedef struct {
char *path;
struct stat stats;
Data *data;
} File;
typedef struct {
char *path;
Data *data;
} FileReceive;
File *file_create(const char *path, struct stat *stats);
void file_destroy(void *item);
void file_load_data(File *file);
void file_print(void *item);
void file_send_single_calls(File *file, int file_descriptor);
size_t file_content_to_buffer(File *file);
Data *file_compress(File *file);
FileReceive *file_receive_create(char *path, Data *data);
void file_receive_destroy(void *file_receive);
FileReceive *file_receive_from_buffer(void *buffer);
FileReceive *file_receive_decompress(void *FileReceive);
#endif