/* 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 */