X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fsave.h;h=0327efa7f4870a4ebb54272c1962dfaee08a9aec;hb=3cd426802c5f093d8d07042b9f180e38b8631c0b;hp=93b6afa4a321b46ed8fc8ee06b774bf3b76aea30;hpb=18dbfbb4e0b4e8531e7dd882f3c55d51a8f38985;p=sbcl.git diff --git a/src/runtime/save.h b/src/runtime/save.h index 93b6afa..0327efa 100644 --- a/src/runtime/save.h +++ b/src/runtime/save.h @@ -11,11 +11,20 @@ #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 boolean save_to_filehandle(FILE *file, char *filename, lispobj initfun); -extern boolean save(char *filename, lispobj initfun); +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, + 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); #endif