X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fany-reader.h;h=063a7e650ecee3f335fa9078c8035982f54f2ace;hb=1bd3c7fb84c7ab0db1bf8c637f2b9b3591e846c6;hp=e999aa33f5be28543d18c1f0b120d47ded4264d0;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp diff --git a/src/data/any-reader.h b/src/data/any-reader.h index e999aa33f5..063a7e650e 100644 --- a/src/data/any-reader.h +++ b/src/data/any-reader.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2006, 2010 Free Software Foundation, Inc. + Copyright (C) 2006, 2010, 2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,10 +19,19 @@ #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); -struct casereader *any_reader_open (struct file_handle *, +enum detect_result any_reader_may_open (const char *file_name); +struct casereader *any_reader_open (struct file_handle *, const char *encoding, struct dictionary **); #endif /* any-reader.h */