William Lallemand | 82fe75c | 2012-10-23 10:25:10 +0200 | [diff] [blame] | 1 | /* |
| 2 | * include/proto/compression.h |
| 3 | * This file defines function prototypes for compression. |
| 4 | * |
| 5 | * Copyright 2012 (C) Exceliance, David Du Colombier <dducolombier@exceliance.fr> |
| 6 | * William Lallemand <wlallemand@exceliance.fr> |
| 7 | * |
| 8 | * This library is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation, version 2.1 |
| 11 | * exclusively. |
| 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ |
| 22 | |
| 23 | #ifndef _PROTO_COMP_H |
| 24 | #define _PROTO_COMP_H |
| 25 | |
| 26 | #include <types/compression.h> |
| 27 | |
William Lallemand | 072a2bf | 2012-11-20 17:01:01 +0100 | [diff] [blame] | 28 | extern unsigned int compress_min_idle; |
| 29 | |
William Lallemand | 82fe75c | 2012-10-23 10:25:10 +0200 | [diff] [blame] | 30 | int comp_append_type(struct comp *comp, const char *type); |
| 31 | int comp_append_algo(struct comp *comp, const char *algo); |
| 32 | |
William Lallemand | 82fe75c | 2012-10-23 10:25:10 +0200 | [diff] [blame] | 33 | #ifdef USE_ZLIB |
William Lallemand | e3a7d99 | 2012-11-20 11:25:20 +0100 | [diff] [blame] | 34 | extern long zlib_used_memory; |
William Lallemand | 82fe75c | 2012-10-23 10:25:10 +0200 | [diff] [blame] | 35 | #endif /* USE_ZLIB */ |
| 36 | |
| 37 | #endif /* _PROTO_COMP_H */ |
| 38 | |
| 39 | /* |
| 40 | * Local variables: |
| 41 | * c-indent-level: 8 |
| 42 | * c-basic-offset: 8 |
| 43 | * End: |
| 44 | */ |