forked from cms-externals/frontier_client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfn-zlib.h
31 lines (26 loc) · 770 Bytes
/
fn-zlib.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
/*
* frontier client zlib support header
*
* Author: Sergey Kosyakov
*
* $Id$
*
* Copyright (c) 2009, FERMI NATIONAL ACCELERATOR LABORATORY
* All rights reserved.
*
* For details of the Fermitools (BSD) license see Fermilab-2009.txt or
* http://fermitools.fnal.gov/about/terms.html
*
*/
#ifndef __H__FN_ZLIB_H
#define __H__FN_ZLIB_H
#define MAX_STR2URL_SIZE (1024*1024) // 1MiB
#define FN_ZLIB_E_SMALLBUF -1
#define FN_ZLIB_E_NOMEM -2
#define FN_ZLIB_E_OTHER -3
#define FN_ZLIB_E_TOOBIG -4
long fn_gzip_str(const char *src,long src_size,char *dest,long dest_size);
void fn_gzip_cleanup();
int fn_gunzip_init();
int fn_gunzip_update(unsigned char *src,int *src_size,const unsigned char *dest,int *dest_size,int final);
#endif //__H__FN_ZLIB_H