File tree 9 files changed +39
-26
lines changed 9 files changed +39
-26
lines changed Original file line number Diff line number Diff line change @@ -1036,6 +1036,7 @@ LIB_OBJS += fsmonitor.o
1036
1036
LIB_OBJS += fsmonitor-ipc.o
1037
1037
LIB_OBJS += fsmonitor-settings.o
1038
1038
LIB_OBJS += gettext.o
1039
+ LIB_OBJS += git-zlib.o
1039
1040
LIB_OBJS += gpg-interface.o
1040
1041
LIB_OBJS += graph.o
1041
1042
LIB_OBJS += grep.o
@@ -1196,7 +1197,6 @@ LIB_OBJS += write-or-die.o
1196
1197
LIB_OBJS += ws.o
1197
1198
LIB_OBJS += wt-status.o
1198
1199
LIB_OBJS += xdiff-interface.o
1199
- LIB_OBJS += zlib.o
1200
1200
1201
1201
BUILTIN_OBJS += builtin/add.o
1202
1202
BUILTIN_OBJS += builtin/am.o
Original file line number Diff line number Diff line change 5
5
#include "alloc.h"
6
6
#include "config.h"
7
7
#include "gettext.h"
8
+ #include "git-zlib.h"
8
9
#include "hex.h"
9
10
#include "tar.h"
10
11
#include "archive.h"
Original file line number Diff line number Diff line change 5
5
#include "config.h"
6
6
#include "archive.h"
7
7
#include "gettext.h"
8
+ #include "git-zlib.h"
8
9
#include "hex.h"
9
10
#include "streaming.h"
10
11
#include "utf8.h"
Original file line number Diff line number Diff line change 4
4
#include "config.h"
5
5
#include "environment.h"
6
6
#include "gettext.h"
7
+ #include "git-zlib.h"
7
8
#include "hex.h"
8
9
#include "object-store.h"
9
10
#include "object.h"
Original file line number Diff line number Diff line change 3
3
4
4
#include "git-compat-util.h"
5
5
#include "strbuf.h"
6
+ #include "git-zlib.h"
6
7
#include "hashmap.h"
7
8
#include "list.h"
8
9
#include "gettext.h"
14
15
#include "repository.h"
15
16
#include "statinfo.h"
16
17
17
- typedef struct git_zstream {
18
- z_stream z ;
19
- unsigned long avail_in ;
20
- unsigned long avail_out ;
21
- unsigned long total_in ;
22
- unsigned long total_out ;
23
- unsigned char * next_in ;
24
- unsigned char * next_out ;
25
- } git_zstream ;
26
-
27
- void git_inflate_init (git_zstream * );
28
- void git_inflate_init_gzip_only (git_zstream * );
29
- void git_inflate_end (git_zstream * );
30
- int git_inflate (git_zstream * , int flush );
31
-
32
- void git_deflate_init (git_zstream * , int level );
33
- void git_deflate_init_gzip (git_zstream * , int level );
34
- void git_deflate_init_raw (git_zstream * , int level );
35
- void git_deflate_end (git_zstream * );
36
- int git_deflate_abort (git_zstream * );
37
- int git_deflate_end_gently (git_zstream * );
38
- int git_deflate (git_zstream * , int flush );
39
- unsigned long git_deflate_bound (git_zstream * , unsigned long );
40
-
41
18
#if defined(DT_UNKNOWN ) && !defined(NO_D_TYPE_IN_DIRENT )
42
19
#define DTYPE (de ) ((de)->d_type)
43
20
#else
Original file line number Diff line number Diff line change 2
2
* zlib wrappers to make sure we don't silently miss errors
3
3
* at init time.
4
4
*/
5
- #include "cache.h"
5
+ #include "git-compat-util.h"
6
+ #include "git-zlib.h"
6
7
7
8
static const char * zerr_to_string (int status )
8
9
{
Original file line number Diff line number Diff line change
1
+ #ifndef GIT_ZLIB_H
2
+ #define GIT_ZLIB_H
3
+
4
+ typedef struct git_zstream {
5
+ z_stream z ;
6
+ unsigned long avail_in ;
7
+ unsigned long avail_out ;
8
+ unsigned long total_in ;
9
+ unsigned long total_out ;
10
+ unsigned char * next_in ;
11
+ unsigned char * next_out ;
12
+ } git_zstream ;
13
+
14
+ void git_inflate_init (git_zstream * );
15
+ void git_inflate_init_gzip_only (git_zstream * );
16
+ void git_inflate_end (git_zstream * );
17
+ int git_inflate (git_zstream * , int flush );
18
+
19
+ void git_deflate_init (git_zstream * , int level );
20
+ void git_deflate_init_gzip (git_zstream * , int level );
21
+ void git_deflate_init_raw (git_zstream * , int level );
22
+ void git_deflate_end (git_zstream * );
23
+ int git_deflate_abort (git_zstream * );
24
+ int git_deflate_end_gently (git_zstream * );
25
+ int git_deflate (git_zstream * , int flush );
26
+ unsigned long git_deflate_bound (git_zstream * , unsigned long );
27
+
28
+ #endif /* GIT_ZLIB_H */
Original file line number Diff line number Diff line change 2
2
#include "alloc.h"
3
3
#include "config.h"
4
4
#include "environment.h"
5
+ #include "git-zlib.h"
5
6
#include "hex.h"
6
7
#include "repository.h"
7
8
#include "refs.h"
Original file line number Diff line number Diff line change 1
1
#ifndef HTTP_H
2
2
#define HTTP_H
3
3
4
+ struct packed_git ;
5
+
4
6
#include "cache.h"
7
+ #include "git-zlib.h"
5
8
6
9
#include <curl/curl.h>
7
10
#include <curl/easy.h>
You can’t perform that action at this time.
0 commit comments