24 #include <FMI/fmi_zip_unzip.h> 25 #include "config_test.h" 30 printf(
"Press any key to exit\n");
38 printf(
"module = %s, log level = %d: %s\n", module, log_level, message);
45 int main(
int argc,
char *argv[])
53 callbacks.
free = free;
58 status = fmi_zip_unzip(UNCOMPRESSED_DUMMY_FILE_PATH_SRC, UNCOMPRESSED_DUMMY_FOLDER_PATH_DIST, &callbacks);
61 printf(
"Failed to uncompress the file\n");
64 printf(
"Succesfully uncompressed the file\n");
jm_calloc_f calloc
Allocate zero initialized memory.
jm_log_level_enu_t
Log levels supported via the logger functions in jm_callbacks.
int main(int argc, char *argv[])
Unzip test. Tests the fmi_zip_unzip function by uncompressing some file.
jm_log_level_enu_t log_level
Logging level.
jm_malloc_f malloc
Allocate non-initialized memory.
jm_voidp context
Arbitrary context pointer passed to the logger function.
const char * jm_string
A constant string.
void importlogger(jm_callbacks *c, jm_string module, jm_log_level_enu_t log_level, jm_string message)
The callbacks struct is sent to all the modules in the library.
jm_realloc_f realloc
Re-allocate memory.
jm_status_enu_t
Return status codes.
jm_free_f free
Free-allocated memory.
jm_logger_f logger
Logging callback.