X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpfm-write.h;h=a1bb7ce90261f24f5fe9ac64b8dfc2b99422ddd5;hb=000e3e8c5818476c3afbc75fad9347aefb6e902a;hp=1f845d83c17200efcef2cf28cd8d5fb027f1671e;hpb=b321086267ad1014dc5d09886396cde30f094437;p=pspp diff --git a/src/pfm-write.h b/src/pfm-write.h index 1f845d83c1..a1bb7ce902 100644 --- a/src/pfm-write.h +++ b/src/pfm-write.h @@ -14,20 +14,39 @@ 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 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 *); -int pfm_write_case (struct pfm_writer *, struct ccase *); +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 *, const struct ccase *); void pfm_close_writer (struct pfm_writer *); #endif /* pfm-write.h */