X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c34db1bee375677eab244e11d1beccc228f23914..0bb0e26c0c82778a50e901acbc5e00f739435eef:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 5ca33390f9..280a1ffbed 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -122,6 +122,14 @@ enum wxSeekMode wxFromEnd }; +enum wxFileKind +{ + wxFILE_KIND_UNKNOWN, + wxFILE_KIND_DISK, // a file supporting seeking to arbitrary offsets + wxFILE_KIND_TERMINAL, // a tty + wxFILE_KIND_PIPE // a pipe +}; + // ---------------------------------------------------------------------------- // declare our versions of low level file functions: some compilers prepend // underscores to the usual names, some also have Unicode versions of them @@ -449,6 +457,10 @@ WXDLLIMPEXP_BASE bool wxMkdir(const wxString& dir, int perm = 0777); // Remove directory. Flags reserved for future use. WXDLLIMPEXP_BASE bool wxRmdir(const wxString& dir, int flags = 0); +// Return the type of an open file +WXDLLIMPEXP_BASE wxFileKind wxGetFileKind(int fd); +WXDLLIMPEXP_BASE wxFileKind wxGetFileKind(FILE *fp); + // compatibility defines, don't use in new code #define wxDirExists wxPathExists