X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsfm-write.h;h=896353dbef30a77d72e4cac1d2614d385fb1e85c;hb=b9799cdd10b30ea96d9178b7a0d48504d052228c;hp=82cf2c95cf84ccff7754567335560306e35ff074;hpb=b321086267ad1014dc5d09886396cde30f094437;p=pspp-builds.git diff --git a/src/sfm-write.h b/src/sfm-write.h index 82cf2c95..896353db 100644 --- a/src/sfm-write.h +++ b/src/sfm-write.h @@ -14,19 +14,31 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #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); +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 *);