• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/cups-408/cups/test/

Lines Matching +defs:message +defs:key +defs:id

273   int			next_job_id;	/* Next job-id value */
288 int id; /* Job ID */
312 ipp_op_t operation_id; /* IPP operation-id */
396 const char *message, ...)
703 return (b->id - a->id);
769 if (!ra || cupsArrayFind(ra, "job-state-message"))
774 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job pending.");
779 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job incoming.");
781 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job held.");
783 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job created.");
788 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job canceling.");
790 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job printing.");
794 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job stopped.");
798 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job canceled.");
802 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job aborted.");
806 ippAddString(client->response, IPP_TAG_JOB, IPP_CONST_TAG(IPP_TAG_TEXT), "job-state-message", NULL, "Job completed.");
1005 job->id = client->printer->next_job_id ++;
1007 snprintf(uri, sizeof(uri), "%s/%d", client->printer->uri, job->id);
1008 httpAssembleUUID(client->printer->hostname, client->printer->port, client->printer->name, job->id, uuid, sizeof(uuid));
1011 ippAddInteger(job->attrs, IPP_TAG_JOB, IPP_TAG_INTEGER, "job-id", job->id);
1080 * Create a filename with the job-id, job-name, and document-format (extension)...
1083 snprintf(fname, fnamesize, "%s/%d-%s.%s", printer->directory, job->id, name, ext);
1127 char media_key[256]; /* media-key value */
1139 ippAddString(media_col, IPP_TAG_PRINTER, IPP_TAG_KEYWORD, "media-key", NULL,
1215 device_id[1024],/* printer-device-id */
1294 "job-account-id",
1295 "job-accounting-user-id",
1654 /* job-account-id-default */
1655 ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "job-account-id-default", NULL, "");
1657 /* job-account-id-supported */
1658 ippAddBoolean(printer->attrs, IPP_TAG_PRINTER, "job-account-id-supported", 1);
1660 /* job-accounting-user-id-default */
1661 ippAddString(printer->attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_NAME), "job-accounting-user-id-default", NULL, "");
1663 /* job-accounting-user-id-supported */
1664 ippAddBoolean(printer->attrs, IPP_TAG_PRINTER, "job-accounting-user-id-supported", 1);
1934 /* printer-device-id */
1936 "printer-device-id", NULL, device_id);
1969 "job-accounting-user-id",
2130 fprintf(stderr, " operation-id=%s(%04x)\n",
2135 fprintf(stderr, " request-id=%d\n\n", ippGetRequestId(ipp));
2197 fprintf(stderr, "Removing job #%d from history.\n", job->id);
2340 ipp_attribute_t *attr; /* job-id or job-uri attribute */
2341 _ipp_job_t key, /* Job search key */
2351 key.id = atoi(uri + client->printer->urilen + 1);
2355 else if ((attr = ippFindAttribute(client->request, "job-id", IPP_TAG_INTEGER)) != NULL)
2356 key.id = ippGetInteger(attr, 0);
2359 job = (_ipp_job_t *)cupsArrayFind(client->printer->jobs, &key);
2719 "Job #%d is already canceled - can\'t cancel.", job->id);
2724 "Job #%d is already aborted - can\'t cancel.", job->id);
2729 "Job #%d is already completed - can\'t cancel.", job->id);
2785 "Job #%d is canceled - can\'t close.", job->id);
2790 "Job #%d is aborted - can\'t close.", job->id);
2795 "Job #%d is completed - can\'t close.", job->id);
2801 "Job #%d is already closed.", job->id);
2861 cupsArrayAdd(ra, "job-id");
2863 cupsArrayAdd(ra, "job-state-message");
2997 if ((attr = ippFindAttribute(client->request, "first-job-id",
3002 fprintf(stderr, "%s Get-Jobs first-job-id=%d", client->hostname,
3060 job->id < first_job_id ||
3177 if (!ra || cupsArrayFind(ra, "printer-state-message"))
3181 ippAddString(client->response, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_TEXT), "printer-state-message", NULL, messages[printer->state - IPP_PSTATE_IDLE]);
3266 * 'ipp_identify_printer()' - Beep or display a message.
3415 cupsArrayAdd(ra, "job-id");
3417 cupsArrayAdd(ra, "job-state-message");
3547 client->printer->directory, job->id);
3550 client->printer->directory, job->id);
3553 client->printer->directory, job->id);
3556 client->printer->directory, job->id);
3559 client->printer->directory, job->id);
3727 cupsArrayAdd(ra, "job-id");
3929 cupsArrayAdd(ra, "job-id");
4110 client->printer->directory, job->id);
4113 client->printer->directory, job->id);
4116 client->printer->directory, job->id);
4119 client->printer->directory, job->id);
4122 client->printer->directory, job->id);
4298 cupsArrayAdd(ra, "job-id");
4733 html_printf(client, "<tr><td>%d</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", job->id, job->name, job->username, when);
5030 * First build an empty response message for this request...
5052 respond_ipp(client, IPP_STATUS_ERROR_BAD_REQUEST, "Bad request-id %d.",
5610 char message[1024]; /* Text message */
5625 * Format an error message...
5630 snprintf(message, sizeof(message), "%d - %s\n", code, httpStatus(code));
5633 length = strlen(message);
5636 message[0] = '\0';
5669 if (message[0])
5672 * Send a plain text message.
5675 if (httpPrintf(client->http, "%s", message) < 0)
5706 const char *message, /* I - printf-style status-message */
5709 const char *formatted = NULL; /* Formatted message */
5714 if (message)
5717 ipp_attribute_t *attr; /* New status-message attribute */
5719 va_start(ap, message);
5720 if ((attr = ippFindAttribute(client->response, "status-message",
5722 ippSetStringfv(client->response, &attr, 0, message, ap);
5725 "status-message", NULL, message, ap);