X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsfm-write.h;h=896353dbef30a77d72e4cac1d2614d385fb1e85c;hb=a29bbbe97388bb6f9c9b4df36b448dfe5023363c;hp=6795a348d1cc9a836bace2ce41206f75fc0f43e0;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/sfm-write.h b/src/sfm-write.h index 6795a348d1..896353dbef 100644 --- a/src/sfm-write.h +++ b/src/sfm-write.h @@ -20,14 +20,24 @@ #ifndef SFM_WRITE_H #define SFM_WRITE_H 1 +#include + /* Writing system files. */ +/* Options for creating a system file. */ +struct sfm_write_options + { + bool create_writeable; /* File perms: writeable or read/only? */ + bool compress; /* Compress file? */ + int version; /* System file version (currently 2 or 3). */ + }; + struct file_handle; struct dictionary; struct ccase; -struct sfm_writer *sfm_open_writer (struct file_handle *, - const struct dictionary *, - int compress, short omit_longnames); +struct sfm_writer *sfm_open_writer (struct file_handle *, struct dictionary *, + struct sfm_write_options); +struct sfm_write_options sfm_writer_default_options (void); int sfm_write_case (struct sfm_writer *, struct ccase *); void sfm_close_writer (struct sfm_writer *);