Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: third_party/zlib/contrib/minizip/ioapi.h

Issue 8873039: Add an API to unpack Zip files directly from and to file descriptors. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* ioapi.h -- IO base function header for compress/uncompress .zip 1 /* ioapi.h -- IO base function header for compress/uncompress .zip
2 files using zlib + zip or unzip API 2 files using zlib + zip or unzip API
3 3
4 Version 1.01e, February 12th, 2005 4 Version 1.01e, February 12th, 2005
5 5
6 Copyright (C) 1998-2005 Gilles Vollant 6 Copyright (C) 1998-2005 Gilles Vollant
7 */ 7 */
8 8
9 #ifndef _ZLIBIOAPI_H 9 #ifndef _ZLIBIOAPI_H
10 #define _ZLIBIOAPI_H 10 #define _ZLIBIOAPI_H
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 seek_file_func zseek_file; 52 seek_file_func zseek_file;
53 close_file_func zclose_file; 53 close_file_func zclose_file;
54 testerror_file_func zerror_file; 54 testerror_file_func zerror_file;
55 voidpf opaque; 55 voidpf opaque;
56 } zlib_filefunc_def; 56 } zlib_filefunc_def;
57 57
58 58
59 59
60 void fill_fopen_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); 60 void fill_fopen_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def));
61 61
62 // Google
63 void fill_fdopen_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def, const int f d));
64
62 #define ZREAD(filefunc,filestream,buf,size) ((*((filefunc).zread_file))((filefun c).opaque,filestream,buf,size)) 65 #define ZREAD(filefunc,filestream,buf,size) ((*((filefunc).zread_file))((filefun c).opaque,filestream,buf,size))
63 #define ZWRITE(filefunc,filestream,buf,size) ((*((filefunc).zwrite_file))((filef unc).opaque,filestream,buf,size)) 66 #define ZWRITE(filefunc,filestream,buf,size) ((*((filefunc).zwrite_file))((filef unc).opaque,filestream,buf,size))
64 #define ZTELL(filefunc,filestream) ((*((filefunc).ztell_file))((filefunc).opaque ,filestream)) 67 #define ZTELL(filefunc,filestream) ((*((filefunc).ztell_file))((filefunc).opaque ,filestream))
65 #define ZSEEK(filefunc,filestream,pos,mode) ((*((filefunc).zseek_file))((filefun c).opaque,filestream,pos,mode)) 68 #define ZSEEK(filefunc,filestream,pos,mode) ((*((filefunc).zseek_file))((filefun c).opaque,filestream,pos,mode))
66 #define ZCLOSE(filefunc,filestream) ((*((filefunc).zclose_file))((filefunc).opaq ue,filestream)) 69 #define ZCLOSE(filefunc,filestream) ((*((filefunc).zclose_file))((filefunc).opaq ue,filestream))
67 #define ZERROR(filefunc,filestream) ((*((filefunc).zerror_file))((filefunc).opaq ue,filestream)) 70 #define ZERROR(filefunc,filestream) ((*((filefunc).zerror_file))((filefunc).opaq ue,filestream))
68 71
69 72
70 #ifdef __cplusplus 73 #ifdef __cplusplus
71 } 74 }
72 #endif 75 #endif
73 76
74 #endif 77 #endif
75 78
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698