X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fdriver-provider.h;h=c44a2e303bed8238a9fa89b1ff856503fd57b396;hb=a4c6ba6fe1a82efa5968584b274bc096ade11d24;hp=754b0d0b5677adaa54b7f37c550dfe643fe22a20;hpb=c924d7187269c30657e0ad2d5a989b30aeb85c3f;p=pspp diff --git a/src/output/driver-provider.h b/src/output/driver-provider.h index 754b0d0b56..c44a2e303b 100644 --- a/src/output/driver-provider.h +++ b/src/output/driver-provider.h @@ -25,6 +25,7 @@ struct output_item; struct string_map; +struct file_handle; /* A configured output driver. */ struct output_driver @@ -36,11 +37,14 @@ 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 @@ -71,9 +75,7 @@ struct output_driver_class void (*flush) (struct output_driver *driver); }; -/* Useful for output driver implementation. */ -void output_driver_track_current_command (const struct output_item *, char **); - + /* An abstract way for the output subsystem to create an output driver. */ struct output_driver_factory { @@ -98,10 +100,11 @@ 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); }; +char *output_get_text_from_markup (const char *markup); #endif /* output/driver-provider.h */