]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMILibrary/src/ZIP/include/FMI/fmi_zip_zip.h
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / src / ZIP / include / FMI / fmi_zip_zip.h
diff --git a/org.simantics.fmil.core/native/FMILibrary/src/ZIP/include/FMI/fmi_zip_zip.h b/org.simantics.fmil.core/native/FMILibrary/src/ZIP/include/FMI/fmi_zip_zip.h
new file mode 100644 (file)
index 0000000..1d4382f
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+    Copyright (C) 2012 Modelon AB
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the BSD style license.
+
+     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
+    FMILIB_License.txt file for more details.
+
+    You should have received a copy of the FMILIB_License.txt file
+    along with this program. If not, contact Modelon AB <http://www.modelon.com>.
+*/
+
+
+#ifndef FMI_ZIP_ZIP_H_
+#define FMI_ZIP_ZIP_H_
+
+#ifdef __cplusplus 
+extern "C" {
+#endif
+
+#include <JM/jm_types.h>
+/**
+ \file fmi_zip_unzip.h
+ Declaration of fmi_zip_zip() function.
+
+ \addtogroup fmi_zip Interface to zlib
+ \brief Interface to Zlib library <http://www.zlib.net/> and Minizip <http://www.winimage.com/zLibDll/minizip.html>
+       to support zip and unzip of FMU modules.
+ @{
+*/
+
+/**\r
+ * \brief Compress files to the zip format\r
+ * \r
+ * @param zip_file_path Full file path to the final compressed file. The folders must exist.\r
+ * @param n_files_to_zip Number of files to compress\r
+ * @param files_to_zip List of the full file names to compress\r
+ * @param callbacks Callback functions\r
+ * @return Error status.\r
+ */
+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);
+
+/** @} */
+
+#ifdef __cplusplus 
+}
+#endif
+
+#endif /* End of header file FMI_ZIP_ZIP_H_ */
+