From 9c36d71ab89c8768dfe05cbf91f453282fc8baf9 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sun, 28 Sep 2008 13:40:06 +0000 Subject: * desktop/save_pdf/pdf_plotters.c: - save_pdf(): constify path parameter and routine no longer frees it. Follow latter change in pdf_end(), nsgtk_PDF_set_pass() and nsgtk_PDF_no_pass() - pdf_printer: constify - last_clip_x0, last_clip_y0, last_clip_x1, last_clip_y1, in_text_mode, text_mode_request: make static - pdf_doc: free previous PDF document if previous save attempt failed. - set PDF Creator entry based on our user_agent_string(). * other minor changes. svn path=/trunk/netsurf/; revision=5452 --- desktop/save_pdf/pdf_plotters.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'desktop/save_pdf/pdf_plotters.h') diff --git a/desktop/save_pdf/pdf_plotters.h b/desktop/save_pdf/pdf_plotters.h index ba815c552..a64b91768 100644 --- a/desktop/save_pdf/pdf_plotters.h +++ b/desktop/save_pdf/pdf_plotters.h @@ -24,12 +24,11 @@ #define NETSURF_PDF_PLOTTERS_H #include "desktop/print.h" -struct plotter_table; -extern struct printer pdf_printer; +extern const struct printer pdf_printer; /**Start plotting a pdf file*/ -bool pdf_begin(struct print_settings* settings); +bool pdf_begin(struct print_settings *settings); /**Finish the current page and start a new one*/ bool pdf_next_page(void); @@ -39,6 +38,6 @@ void pdf_end(void); void pdf_set_scale(float s); -void save_pdf(char *path); +void save_pdf(const char *path); #endif /*NETSURF_PDF_PLOTTERS_H*/ -- cgit v1.2.3