/*
- * "$Id: util.c 5023 2006-01-29 14:39:44Z mike $"
+ * "$Id: util.c 5064 2006-02-03 16:51:05Z mike $"
*
* Printing utilities for the Common UNIX Printing System (CUPS).
*
char uri[HTTP_MAX_URI]; /* Printer URI */
cups_lang_t *language; /* Language to use */
int jobid; /* New job ID */
+ const char *base; /* Basename of current filename */
DEBUG_printf(("cupsPrintFiles(http=%p, name=\"%s\", num_files=%d, "
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
"requesting-user-name", NULL, cupsUser());
+ /*
+ * Add the original document filename...
+ */
+
+ if ((base = strrchr(files[i], '/')) != NULL)
+ base ++;
+ else
+ base = files[i];
+
+ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "document-name",
+ NULL, base);
+
/*
* Is this the last document?
*/
/*
- * End of "$Id: util.c 5023 2006-01-29 14:39:44Z mike $".
+ * End of "$Id: util.c 5064 2006-02-03 16:51:05Z mike $".
*/