refactor(file, utilities): moved Changes struct to file.h
This commit is contained in:
parent
ff71a92249
commit
d611d2ed68
1 changed files with 11 additions and 0 deletions
|
|
@ -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*);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue