X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffile-handle.h;h=2e8de05ab2f774c840b9ab09cd80a9f16449b5f3;hb=92fb12eb06716d14c05b781f5d9dcde956d77c30;hp=d7c14e991b7ea5d8283fcba9ea07c52e220d668b;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/file-handle.h b/src/file-handle.h index d7c14e991b..2e8de05ab2 100644 --- a/src/file-handle.h +++ b/src/file-handle.h @@ -22,33 +22,10 @@ /* File handles. */ +#include #include +#include "file-handle-def.h" -/* File modes. */ -enum file_handle_mode - { - MODE_TEXT, /* New-line delimited lines. */ - MODE_BINARY /* Fixed-length records. */ - }; - - - -void fh_init(void); -void fh_done(void); - -/* Parsing handles. */ -struct file_handle *fh_parse (void); - - -/* Opening and closing handles. */ -void **fh_open (struct file_handle *, const char *type, const char *mode); -int fh_close (struct file_handle *, const char *type, const char *mode); - -/* Handle info. */ -const char *handle_get_name (const struct file_handle *); -const char *handle_get_filename (const struct file_handle *); -enum file_handle_mode handle_get_mode (const struct file_handle *); -size_t handle_get_record_width (const struct file_handle *); -size_t handle_get_tab_width (const struct file_handle *); +struct file_handle *fh_parse (enum fh_referent); #endif /* !file_handle.h */