table-select: Only cut headers into two if needed in table_select_slice().
[pspp] / src / data / any-reader.h
index e999aa33f5be28543d18c1f0b120d47ded4264d0..063a7e650ecee3f335fa9078c8035982f54f2ace 100644 (file)
@@ -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
 
 #include <stdbool.h>
 
+/* 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 */