refactor(file, utilities): moved Changes struct to file.h

This commit is contained in:
lisk77 2025-09-19 19:16:56 +02:00
parent ff71a92249
commit d611d2ed68

View file

@ -8,6 +8,10 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <math.h> #include <math.h>
#include <zlib.h> #include <zlib.h>
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
#include <fcntl.h>
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
@ -23,6 +27,8 @@
#include "hash.h" #include "hash.h"
#include "list.h" #include "list.h"
#include "action_list.h"
#include "common.h"
typedef struct { typedef struct {
char** content; char** content;
@ -37,6 +43,11 @@ typedef struct {
typedef List FileInfoBuffer; typedef List FileInfoBuffer;
typedef struct {
uint32_t insertions;
uint32_t deletions;
} Changes;
File* new_empty_file(); File* new_empty_file();
File* new_file(const char*); File* new_file(const char*);
File* from_string(char*); File* from_string(char*);