struct output_item;
struct string_map;
+struct file_handle;
/* A configured output driver. */
struct output_driver
void output_driver_init (struct output_driver *,
const struct output_driver_class *,
- const char *name, enum settings_output_devices);
+ const char *, enum settings_output_devices);
+
void output_driver_destroy (struct output_driver *);
const char *output_driver_get_name (const struct output_driver *);
+char *output_driver_substitute_heading_vars (const char *, int page_number);
+
/* One kind of output driver.
Output driver implementations must not call msg() to report errors. This
void (*flush) (struct output_driver *driver);
};
-/* Useful for output driver implementation. */
-void output_driver_track_current_command (const struct output_item *, char **);
-\f
+
/* An abstract way for the output subsystem to create an output driver. */
struct output_driver_factory
{
The returned driver should not have been registered (with
output_driver_register). The caller will register the driver (if this
is desirable). */
- struct output_driver *(*create) (const char *name,
+ struct output_driver *(*create) (struct file_handle *,
enum settings_output_devices type,
struct string_map *options);
};
-
#endif /* output/driver-provider.h */