Lines Matching refs:cups
198 smb_cups_ops_t *cups; in smbd_spool_copyfile() local
227 if ((cups = smbd_cups_ops()) == NULL) in smbd_spool_copyfile()
230 if ((http = cups->httpConnect("localhost", 631)) == NULL) { in smbd_spool_copyfile()
236 if ((request = cups->ippNewRequest(IPP_PRINT_JOB)) == NULL) { in smbd_spool_copyfile()
258 cups->ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, in smbd_spool_copyfile()
261 cups->ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, in smbd_spool_copyfile()
271 cups->ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, in smbd_spool_copyfile()
276 cups->ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, in smbd_spool_copyfile()
281 response = cups->cupsDoFileRequest(http, request, uri, in smbd_spool_copyfile()
284 if (cups->ippGetStatusCode(response) >= IPP_OK_CONFLICT) { in smbd_spool_copyfile()
288 cups->ippErrorString(cups->cupsLastError())); in smbd_spool_copyfile()
296 cups->ippErrorString(cups->cupsLastError())); in smbd_spool_copyfile()
304 cups->ippDelete(response); in smbd_spool_copyfile()
307 cups->httpClose(http); in smbd_spool_copyfile()
434 smb_cups_ops_t *cups; in smbd_share_printers() local
443 if ((cups = smbd_cups_ops()) == NULL) in smbd_share_printers()
452 num_dests = cups->cupsGetDests(&dests); in smbd_share_printers()
472 cups->cupsFreeDests(num_dests, dests); in smbd_share_printers()