root/trunk/src/libopensc/compression.h

Revision 3126, 1.3 KB (checked in by aj, 21 months ago)

changes by Douglas E. Engert:
change the do_decompress* to sc_decompress* and the initialize_* to
sc_pkcs15emu_initialize_* in the new code.

Line 
1/*
2 * compression.h: Generic wrapper for compression of data
3 *
4 * Copyright (C) 2006, Identity Alliance, Thomas Harning <thomas.harning@identityalliance.com>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20#ifndef COMPRESSION_H
21#define COMPRESSION_H
22
23#include "opensc.h"
24#include "types.h"
25
26#define COMPRESSION_AUTO        0
27#define COMPRESSION_ZLIB        1
28#define COMPRESSION_GZIP        2
29#define COMPRESSION_UNKNOWN (-1)
30
31int sc_decompress_alloc(u8** out, size_t* outLen, const u8* in, size_t inLen, int method);
32int sc_decompress(u8* out, size_t* outLen, const u8* in, size_t inLen, int method);
33
34#endif
Note: See TracBrowser for help on using the browser.