-
Notifications
You must be signed in to change notification settings - Fork 31
/
hdiffi_import_patch.h
32 lines (28 loc) · 1.02 KB
/
hdiffi_import_patch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//hdiffi_import_patch.h
// import hpatchi cmd line to hdiffi
/*
The MIT License (MIT)
Copyright (c) 2020-2022 HouSisong All Rights Reserved.
*/
#ifndef hdiffi_import_patch_h
#define hdiffi_import_patch_h
#include <stdlib.h>
#include "HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.h"
#ifdef __cplusplus
extern "C" {
#endif
#define HPATCHLITE_VERSION_MAJOR 0
#define HPATCHLITE_VERSION_MINOR 4
#define HPATCHLITE_VERSION_RELEASE 3
#define _HPATCHLITE_VERSION HPATCHLITE_VERSION_MAJOR.HPATCHLITE_VERSION_MINOR.HPATCHLITE_VERSION_RELEASE
#define _HDIFFPATCH_QUOTE(str) #str
#define _HDIFFPATCH_EXPAND_AND_QUOTE(str) _HDIFFPATCH_QUOTE(str)
#define HPATCHLITE_VERSION_STRING _HDIFFPATCH_EXPAND_AND_QUOTE(_HPATCHLITE_VERSION)
int isSwapToPatchMode(int argc,const char* argv[]);
int hpatchi_cmd_line(int argc,const char* argv[]);
int hpatchi_patch(hpatchi_listener_t* listener,hpi_compressType compress_type,hpi_pos_t newSize,
hpi_pos_t uncompressSize,size_t patchCacheSize);
#ifdef __cplusplus
}
#endif
#endif