X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpfm-write.h;h=e335098a846bc87e4f823d2a9b6e6e88822092b3;hb=5ff91bd55867848d448c2f09bc7057cc1fb77b18;hp=f05b1606c3111885551069be4d4a50c424cf470e;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/pfm-write.h b/src/pfm-write.h index f05b1606c3..e335098a84 100644 --- a/src/pfm-write.h +++ b/src/pfm-write.h @@ -20,13 +20,32 @@ #ifndef PFM_WRITE_H #define PFM_WRITE_H +#include + /* Portable file writing. */ +/* Portable file types. */ +enum pfm_type + { + PFM_COMM, /* Formatted for communication. */ + PFM_TAPE /* Formatted for tape. */ + }; + +/* Portable file writing options. */ +struct pfm_write_options + { + bool create_writeable; /* File perms: writeable or read/only? */ + enum pfm_type type; /* Type of portable file (TODO). */ + int digits; /* Digits of precision. */ + }; + struct file_handle; struct dictionary; struct ccase; -struct pfm_writer *pfm_open_writer (struct file_handle *, - const struct dictionary *); +struct pfm_writer *pfm_open_writer (struct file_handle *, struct dictionary *, + struct pfm_write_options); +struct pfm_write_options pfm_writer_default_options (void); + int pfm_write_case (struct pfm_writer *, struct ccase *); void pfm_close_writer (struct pfm_writer *);