00001 00002 /* 00003 * ============================================================================== 00004 * Name : OpenCLibzheader.h 00005 * Part of : OpenCLibz 00006 * Interface : 00007 * Description : 00008 * Version : 00009 * 00010 * Copyright (c) 2007 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. 00014 * ============================================================================== 00015 */ 00016 00019 /* INCLUDE FILES */ 00020 00021 #include <zlib.h> 00022 #include <stdio.h> 00023 #include <string.h> 00024 #include <stdlib.h> 00025 #include<unistd.h> 00026 00027 /* INCLUDE FILES REQUIRED ONLY FOR MEMORY MAPPING */ 00028 #ifdef USE_MMAP 00029 # include <sys/types.h> 00030 # include <sys/mman.h> 00031 # include <sys/stat.h> 00032 #endif 00033 00034 00035 00036 #ifndef GZ_SUFFIX 00037 # define GZ_SUFFIX ".gz" //extension of the compressed file 00038 #endif 00039 00040 #define SUFFIX_LEN (sizeof(GZ_SUFFIX)-1) 00041 00042 #define BUFLEN 16384 00043 #define MAX_NAME_LEN 1024 00044 00045 00046 00055 void StringCompress(); 00063 void Error OF((const char *msg)); 00073 void GzCompress OF((FILE *in, gzFile out)); 00084 #ifdef USE_MMAP 00085 int GzCompressMmap OF((FILE *in, gzFile out)); 00086 #endif 00087 00094 void GzUnCompress OF((gzFile in, FILE *out)); 00105 void FileCompress OF((char *file, char *mode)); 00113 void FileUnCompress OF((char *file));
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.