X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fany-reader.h;h=063a7e650ecee3f335fa9078c8035982f54f2ace;hb=8b37f66b3599f5809fbbb300d5cba5bb0557c184;hp=fb36e99ccec87af844dd94249296901d69b0d130;hpb=21559edd9991628d96df331e5b391ca6bade3497;p=pspp diff --git a/src/data/any-reader.h b/src/data/any-reader.h index fb36e99cce..063a7e650e 100644 --- a/src/data/any-reader.h +++ b/src/data/any-reader.h @@ -19,9 +19,18 @@ #include +/* Result of type detection. */ +enum detect_result + { + ANY_YES, /* It is this type. */ + ANY_NO, /* It is not this type. */ + ANY_ERROR /* File couldn't be opened. */ + }; + + struct file_handle; struct dictionary; -bool any_reader_may_open (const char *file_name); +enum detect_result any_reader_may_open (const char *file_name); struct casereader *any_reader_open (struct file_handle *, const char *encoding, struct dictionary **);