merk/include/object.h

36 lines
No EOL
731 B
C

#ifndef OBJECT_H
#define OBJECT_H
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
#include <fcntl.h>
#include <zlib.h>
#ifdef _WIN32
#include <windows.h>
#ifndef PATH_MAX
#define PATH_MAX MAX_PATH
#endif
#else
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
#endif
#include "hash.h"
#include "file.h"
#include "tree.h"
#include "common.h"
char* get_object(char*, size_t*);
void* parse_object(char*, ObjectType, size_t*, char*);
int save_diff(ActionList*, char*, char*, size_t, char*, File*, int);
int read_diff(char*, char*, ActionList*);
int save_file_diff(char*, char*, size_t, char*, ActionList*);
File* apply_diff(File*, ActionList*);
#endif // OBJECT_H