output-item: Fix memory leak in output_item_dump().
[pspp] / src / output / driver-provider.h
index 3712663bc5dcc8f95ad7ba2b7598e0767bb82e62..1f3f726949575adf2905086f125bf44cac2f6d53 100644 (file)
@@ -27,6 +27,7 @@ struct output_item;
 struct output_iterator;
 struct string_map;
 struct file_handle;
+struct page_setup;
 
 /* A configured output driver. */
 struct output_driver
@@ -66,6 +67,10 @@ struct output_driver_class
     void (*submit) (struct output_driver *driver,
                     const struct output_item *item);
 
+    /* Changes DRIVER's output page setup to PS, if possible.  This may be NUL
+       if the driver doesn't support page setup. */
+    void (*setup) (struct output_driver *driver, const struct page_setup *ps);
+
     /* Ensures that any output items passed to the 'submit' function for DRIVER
        have actually been displayed.