From 36ec51948e0ecbf8cb9c5e44fbba5214451ee81c Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 19 Aug 2008 13:18:07 +0300 Subject: Add mkfs.ubifs Signed-off-by: Artem Bityutskiy --- mkfs.ubifs/compr.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 mkfs.ubifs/compr.h (limited to 'mkfs.ubifs/compr.h') diff --git a/mkfs.ubifs/compr.h b/mkfs.ubifs/compr.h new file mode 100644 index 0000000..c76a5b9 --- /dev/null +++ b/mkfs.ubifs/compr.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2008 Nokia Corporation. + * Copyright (C) 2008 University of Szeged, Hungary + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published by + * the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 51 + * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: Artem Bityutskiy + * Adrian Hunter + * Zoltan Sogor + */ + +#ifndef __UBIFS_COMPRESS_H__ +#define __UBIFS_COMPRESS_H__ + +enum compression_type +{ + MKFS_UBIFS_COMPR_NONE, + MKFS_UBIFS_COMPR_LZO, + MKFS_UBIFS_COMPR_ZLIB, +}; + +int compress_data(void *in_buf, size_t in_len, void *out_buf, size_t *out_len, + int type); +int init_compression(void); +void destroy_compression(void); + +#endif -- cgit v1.2.3