• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.0.25b/source/printing/

Lines Matching refs:request

81 	ipp_t		*request = NULL,	/* IPP Request */
111 * Build a CUPS_GET_PRINTERS request, which requires the following
119 request = ippNew();
121 request->request.op.operation_id = CUPS_GET_PRINTERS;
122 request->request.op.request_id = 1;
126 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
129 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
132 ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
138 * Do the request and get back a response...
141 if ((response = cupsDoRequest(http, request, "/")) == NULL) {
193 * Build a CUPS_GET_CLASSES request, which requires the following
201 request = ippNew();
203 request->request.op.operation_id = CUPS_GET_CLASSES;
204 request->request.op.request_id = 1;
206 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
209 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
212 ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
218 * Do the request and get back a response...
221 if ((response = cupsDoRequest(http, request, "/")) == NULL) {
293 ipp_t *request = NULL, /* IPP Request */
316 * Build an IPP_CANCEL_JOB request, which requires the following
325 request = ippNew();
327 request->request.op.operation_id = IPP_CANCEL_JOB;
328 request->request.op.request_id = 1;
332 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
335 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
340 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri);
342 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
346 * Do the request and get back a response...
349 if ((response = cupsDoRequest(http, request, "/jobs")) != NULL) {
350 if (response->request.status.status_code >= IPP_OK_CONFLICT) {
383 ipp_t *request = NULL, /* IPP Request */
406 * Build an IPP_HOLD_JOB request, which requires the following
415 request = ippNew();
417 request->request.op.operation_id = IPP_HOLD_JOB;
418 request->request.op.request_id = 1;
422 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
425 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
430 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri);
432 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
436 * Do the request and get back a response...
439 if ((response = cupsDoRequest(http, request, "/jobs")) != NULL) {
440 if (response->request.status.status_code >= IPP_OK_CONFLICT) {
473 ipp_t *request = NULL, /* IPP Request */
496 * Build an IPP_RELEASE_JOB request, which requires the following
505 request = ippNew();
507 request->request.op.operation_id = IPP_RELEASE_JOB;
508 request->request.op.request_id = 1;
512 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
515 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
520 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri", NULL, uri);
522 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
526 * Do the request and get back a response...
529 if ((response = cupsDoRequest(http, request, "/jobs")) != NULL) {
530 if (response->request.status.status_code >= IPP_OK_CONFLICT) {
563 ipp_t *request = NULL, /* IPP Request */
589 * Build an IPP_PRINT_JOB request, which requires the following
599 request = ippNew();
601 request->request.op.operation_id = IPP_PRINT_JOB;
602 request->request.op.request_id = 1;
606 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
609 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
615 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI,
618 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
626 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
633 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL,
645 cupsEncodeOptions(request, num_options, options);
648 * Do the request and get back a response...
653 if ((response = cupsDoFileRequest(http, request, uri, pjob->filename)) != NULL) {
654 if (response->request.status.status_code >= IPP_OK_CONFLICT) {
694 ipp_t *request = NULL, /* IPP Request */
759 * Build an IPP_GET_JOBS request, which requires the following
768 request = ippNew();
770 request->request.op.operation_id = IPP_GET_JOBS;
771 request->request.op.request_id = 1;
775 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
778 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
781 ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
786 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI,
790 * Do the request and get back a response...
793 if ((response = cupsDoRequest(http, request, "/")) == NULL) {
799 if (response->request.status.status_code >= IPP_OK_CONFLICT) {
801 ippErrorString(response->request.status.status_code)));
923 * Build an IPP_GET_PRINTER_ATTRIBUTES request, which requires the
932 request = ippNew();
934 request->request.op.operation_id = IPP_GET_PRINTER_ATTRIBUTES;
935 request->request.op.request_id = 1;
937 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
940 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
943 ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
948 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI,
952 * Do the request and get back a response...
955 if ((response = cupsDoRequest(http, request, "/")) == NULL) {
962 if (response->request.status.status_code >= IPP_OK_CONFLICT) {
964 ippErrorString(response->request.status.status_code)));
1012 ipp_t *request = NULL, /* IPP Request */
1035 * Build an IPP_PAUSE_PRINTER request, which requires the following
1044 request = ippNew();
1046 request->request.op.operation_id = IPP_PAUSE_PRINTER;
1047 request->request.op.request_id = 1;
1051 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
1054 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
1060 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
1062 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
1066 * Do the request and get back a response...
1069 if ((response = cupsDoRequest(http, request, "/admin/")) != NULL) {
1070 if (response->request.status.status_code >= IPP_OK_CONFLICT) {
1103 ipp_t *request = NULL, /* IPP Request */
1126 * Build an IPP_RESUME_PRINTER request, which requires the following
1135 request = ippNew();
1137 request->request.op.operation_id = IPP_RESUME_PRINTER;
1138 request->request.op.request_id = 1;
1142 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
1145 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
1151 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri);
1153 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
1157 * Do the request and get back a response...
1160 if ((response = cupsDoRequest(http, request, "/admin/")) != NULL) {
1161 if (response->request.status.status_code >= IPP_OK_CONFLICT) {
1204 ipp_t *request = NULL, /* IPP Request */
1236 request = ippNew();
1238 request->request.op.operation_id = IPP_GET_PRINTER_ATTRIBUTES;
1239 request->request.op.request_id = 1;
1243 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
1246 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
1252 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI,
1255 ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
1261 * Do the request and get back a response...
1264 if ((response = cupsDoRequest(http, request, "/")) == NULL) {