/* ** KindleTool, convert.h ** ** Copyright (C) 2011-2012 Yifan Lu ** Copyright (C) 2012-2018 NiLuJe ** Concept based on an original Python implementation by Igor Skochinsky & Jean-Yves Avenard, ** cf., http://www.mobileread.com/forums/showthread.php?t=63225 ** ** This program is free software: you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation, either version 3 of the License, or ** (at your option) any later version. ** ** 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, see . */ #ifndef __KINDLETOOL_CONVERT_H #define __KINDLETOOL_CONVERT_H static const char *convert_magic_number(char *); static char *to_base(int64_t, unsigned int); static int kindle_read_bundle_header(UpdateHeader *, FILE *); static int kindle_convert(FILE *, FILE *, FILE *, const bool, const bool, FILE *, char *); static int kindle_convert_ota_update_v2(FILE *, FILE *, const bool, char *); static int kindle_convert_signature(UpdateHeader *, FILE *, FILE *); static int kindle_convert_ota_update(UpdateHeader *, FILE *, FILE *, const bool, char *); static int kindle_convert_recovery(UpdateHeader *, FILE *, FILE *, const bool, char *); static int kindle_convert_recovery_v2(FILE *, FILE *, const bool, char *); static int libarchive_extract(const char *, const char *); #endif // kate: indent-mode cstyle; indent-width 4; replace-tabs on;