Lines Matching defs:handle

60 papiPrintersList(papi_service_t handle, char **requested_attrs,
63 service_t *svc = handle;
75 if ((handle == NULL) || (printers == NULL))
140 papiPrinterQuery(papi_service_t handle, char *name,
146 service_t *svc = handle;
159 if ((handle == NULL) || (name == NULL) || (printer == NULL))
229 papiPrinterAdd(papi_service_t handle, char *name,
236 if ((handle == NULL) || (name == NULL) || (attributes == NULL))
242 status = lpsched_add_modify_printer(handle, dest,
246 lpsched_printer_configuration_to_attributes(handle, p,
252 status = lpsched_add_modify_class(handle, dest, attributes);
255 lpsched_class_configuration_to_attributes(handle, p,
269 papiPrinterModify(papi_service_t handle, char *name,
276 if ((handle == NULL) || (name == NULL) || (attributes == NULL))
282 status = lpsched_add_modify_printer(handle, dest,
286 lpsched_printer_configuration_to_attributes(handle, p,
291 status = lpsched_add_modify_class(handle, dest, attributes);
294 lpsched_class_configuration_to_attributes(handle, p,
307 papiPrinterRemove(papi_service_t handle, char *name)
312 if ((handle == NULL) || (name == NULL))
318 result = lpsched_remove_printer(handle, dest);
320 result = lpsched_remove_class(handle, dest);
330 papiPrinterDisable(papi_service_t handle, char *name, char *message)
334 if ((handle == NULL) || (name == NULL))
337 result = lpsched_disable_printer(handle, name, message);
343 papiPrinterEnable(papi_service_t handle, char *name)
347 if ((handle == NULL) || (name == NULL))
350 result = lpsched_enable_printer(handle, name);
356 papiPrinterPause(papi_service_t handle, char *name, char *message)
360 if ((handle == NULL) || (name == NULL))
363 result = lpsched_reject_printer(handle, name, message);
369 papiPrinterResume(papi_service_t handle, char *name)
373 if ((handle == NULL) || (name == NULL))
376 result = lpsched_accept_printer(handle, name);
382 papiPrinterPurgeJobs(papi_service_t handle, char *name, papi_job_t **jobs)
384 service_t *svc = handle;
391 if ((handle == NULL) || (name == NULL))
432 papiPrinterListJobs(papi_service_t handle, char *name,
436 service_t *svc = handle;
441 if ((handle == NULL) || (name == NULL) || (jobs == NULL))