2 Copyright (C) 2012 Modelon AB
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the BSD style license.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 FMILIB_License.txt file for more details.
12 You should have received a copy of the FMILIB_License.txt file
13 along with this program. If not, contact Modelon AB <http://www.modelon.com>.
17 #ifndef FMI_ZIP_ZIP_H_
18 #define FMI_ZIP_ZIP_H_
24 #include <JM/jm_types.h>
27 Declaration of fmi_zip_zip() function.
29 \addtogroup fmi_zip Interface to zlib
30 \brief Interface to Zlib library <http://www.zlib.net/> and Minizip <http://www.winimage.com/zLibDll/minizip.html>
31 to support zip and unzip of FMU modules.
36 * \brief Compress files to the zip format
\r
38 * @param zip_file_path Full file path to the final compressed file. The folders must exist.
\r
39 * @param n_files_to_zip Number of files to compress
\r
40 * @param files_to_zip List of the full file names to compress
\r
41 * @param callbacks Callback functions
\r
42 * @return Error status.
\r
44 jm_status_enu_t fmi_zip_zip(const char* zip_file_path, int n_files_to_zip, const char** files_to_zip, jm_callbacks* callbacks);
52 #endif /* End of header file FMI_ZIP_ZIP_H_ */