import-compress.h revision 71d35b6b5563817dfbe757ab9e3b9f018b2db491
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering This file is part of systemd.
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering Copyright 2015 Lennart Poettering
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering systemd is free software; you can redistribute it and/or modify it
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering under the terms of the GNU Lesser General Public License as published by
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering the Free Software Foundation; either version 2.1 of the License, or
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering (at your option) any later version.
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering systemd is distributed in the hope that it will be useful, but
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering Lesser General Public License for more details.
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering You should have received a copy of the GNU Lesser General Public License
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poetteringtypedef int (*ImportCompressCallback)(const void *data, size_t size, void *userdata);
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poetteringvoid import_compress_free(ImportCompress *c);
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poetteringint import_uncompress_detect(ImportCompress *c, const void *data, size_t size);
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poetteringint import_uncompress(ImportCompress *c, const void *data, size_t size, ImportCompressCallback callback, void *userdata);
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poetteringint import_compress_init(ImportCompress *c, ImportCompressType t);
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poetteringint import_compress(ImportCompress *c, const void *data, size_t size, void **buffer, size_t *buffer_size, size_t *buffer_allocated);
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poetteringint import_compress_finish(ImportCompress *c, void **buffer, size_t *buffer_size, size_t *buffer_allocated);
0284adc6a60ce0af1107cb0b50041a65d731f39eLennart Poetteringconst char* import_compress_type_to_string(ImportCompressType t) _const_;