diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-11-19 23:25:47 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-11-19 23:25:47 +0000 |
commit | 52f6f666c3ffd368f98d5be963e2e7a92f3dc82b (patch) | |
tree | 4a94cce231591fbbcdc6cbaf74b7e4f427662e6a /systemv/lpstat.c | |
parent | 9380acaa78e7b36fe924662ce3134bdb9acc4225 (diff) | |
download | cups-52f6f666c3ffd368f98d5be963e2e7a92f3dc82b.tar.gz |
Merge changes from CUPS 1.4svn-r8148.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@1068 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv/lpstat.c')
-rw-r--r-- | systemv/lpstat.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/systemv/lpstat.c b/systemv/lpstat.c index 41fdb7a84..ed613869e 100644 --- a/systemv/lpstat.c +++ b/systemv/lpstat.c @@ -1307,18 +1307,23 @@ show_jobs(const char *dests, /* I - Destinations */ * * attributes-charset * attributes-natural-language - * job-uri + * printer-uri * requested-attributes + * requesting-user-name + * which-jobs */ request = ippNewRequest(IPP_GET_JOBS); + ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", + NULL, "ipp://localhost/"); + ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "requested-attributes", sizeof(jattrs) / sizeof(jattrs[0]), NULL, jattrs); - ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", - NULL, "ipp://localhost/jobs/"); + ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", + NULL, cupsUser()); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "which-jobs", NULL, which); |