X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fsave.h;h=28b596709926d36180b807e4397cc188f11c1d7a;hb=f0cb0cf9c0fe1b6fce5d10dbd34a0b7b249c4ae8;hp=5b1cdcdd77f86752038cb91011107fb8e333030e;hpb=f82850855bab2cdaaf51c4e92d506b365866e65f;p=sbcl.git diff --git a/src/runtime/save.h b/src/runtime/save.h index 5b1cdcd..28b5967 100644 --- a/src/runtime/save.h +++ b/src/runtime/save.h @@ -11,14 +11,22 @@ #ifndef _SAVE_H_ #define _SAVE_H_ - +#include #include "core.h" +#define COMPRESSION_LEVEL_NONE INT_MIN + extern FILE* open_core_for_saving(char *filename); extern void *load_runtime(char *runtime_path, size_t *size_out); extern FILE *prepare_to_save(char *filename, boolean prepend_runtime, void **runtime_bytes, size_t *runtime_size); -extern boolean save_runtime_to_filehandle(FILE *output, void *runtime_bytes, size_t runtime_size); -extern boolean save_to_filehandle(FILE *file, char *filename, lispobj initfun, boolean make_executable, boolean keep_runtime_options); -extern boolean save(char *filename, lispobj initfun, boolean prepend_runtime, boolean keep_runtime_options); +extern boolean save_runtime_to_filehandle(FILE *output, void *runtime_bytes, + size_t runtime_size, int application_type); +extern boolean save_to_filehandle(FILE *file, char *filename, lispobj initfun, + boolean make_executable, boolean keep_runtime_options, + int core_compression_level); +extern boolean save(char *filename, lispobj initfun, boolean prepend_runtime, + boolean keep_runtime_options, + boolean compressed_core, int core_compression_level, + int application_type); #endif