- /** Check whether a given file matches this input format.
- * @param filename File name string. */
- bool format_match(string filename);
- /** Open a file using this input format.
- * @param filename File name string.
- * @param options Mapping of (option name, value) strings. */
- shared_ptr<InputFileDevice> open_file(string filename,
- map<string, string> options = {});
+ /** Options supported by this input format. */
+ map<string, shared_ptr<Option> > get_options();
+ /** Create an input using this input format.
+ * @param options Mapping of (option name, value) pairs. */
+ shared_ptr<Input> create_input(map<string, Glib::VariantBase> options = {});