Mercurial > dwindows
diff win/dw.c @ 1152:58b5374355ab
Added print jobname parameter to dw_print_new().
If parameter is NULL a dummy name will be used.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 12 Sep 2011 19:26:49 +0000 |
parents | 091ed7c20b3f |
children | 052f01522c53 |
line wrap: on
line diff
--- a/win/dw.c Mon Sep 12 02:22:48 2011 +0000 +++ b/win/dw.c Mon Sep 12 19:26:49 2011 +0000 @@ -10035,6 +10035,7 @@ /* * Creates a new print object. * Parameters: + * jobname: Name of the print job to show in the queue. * flags: Flags to initially configure the print object. * pages: Number of pages to print. * drawfunc: The pointer to the function to be used as the callback. @@ -10042,7 +10043,7 @@ * Returns: * A handle to the print object or NULL on failure. */ -HPRINT API dw_print_new(unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata) +HPRINT API dw_print_new(char *jobname, unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata) { DWPrint *print; @@ -10067,7 +10068,7 @@ } print->di.cbSize = sizeof(DOCINFO); - print->di.lpszDocName = "Dynamic Windows Print Job"; + print->di.lpszDocName = jobname ? jobname : "Dynamic Windows Print Job"; return print; }