Lines Matching defs:dest

246 	char *dest;
251 dest = printer_name_from_uri_id(printer, job_id);
252 snprintf(req, sizeof (req), "%s-%d", dest, job_id);
253 free(dest);
277 char *dest;
282 dest = printer_name_from_uri_id(printer, job_id);
283 snprintf(req, sizeof (req), "%s-%d", dest, job_id);
284 free(dest);
306 char *dest;
311 dest = printer_name_from_uri_id(printer, -1);
312 if ((snd_msg(svc, S_ACCEPT_DEST, dest) < 0) ||
315 free(dest);
332 char *dest;
340 dest = printer_name_from_uri_id(printer, -1);
341 if ((snd_msg(svc, S_REJECT_DEST, dest, message, 0) < 0) ||
344 free(dest);
361 char *dest;
366 dest = printer_name_from_uri_id(printer, -1);
367 if ((snd_msg(svc, S_ENABLE_DEST, dest) < 0) ||
370 free(dest);
387 char *dest;
395 dest = printer_name_from_uri_id(printer, -1);
396 if ((snd_msg(svc, S_DISABLE_DEST, dest, message, 0) < 0) ||
399 free(dest);
411 lpsched_load_unload_dest(papi_service_t handle, char *dest, int type)
418 if (snd_msg(svc, type, dest, "", "") < 0)
444 lpsched_remove_class(papi_service_t handle, char *dest)
449 result = lpsched_load_unload_dest(handle, dest, S_UNLOAD_CLASS);
453 if (delclass(dest) == -1)
461 remove_from_class(papi_service_t handle, char *dest, CLASS *cls)
463 if (dellist(&cls->members, dest) == 0) {
474 lpsched_remove_printer(papi_service_t handle, char *dest)
480 result = lpsched_load_unload_dest(handle, dest, S_UNLOAD_PRINTER);
487 if (delprinter(dest) == -1)
492 if (searchlist(dest, cls->members) != 0)
493 remove_from_class(handle, dest, cls);
499 (strcmp(dflt, dest) == 0))
507 lpsched_add_modify_class(papi_service_t handle, char *dest,
531 class.name = dest;
534 if (putclass(dest, &class) == -1) {
548 result = lpsched_load_unload_dest(handle, dest, S_LOAD_CLASS);
554 lpsched_add_printer(papi_service_t handle, char *dest,
561 p->name = strdup(dest);
568 if (putprinter(dest, p) == -1) {
581 result = lpsched_load_unload_dest(handle, dest, S_LOAD_PRINTER);
587 lpsched_add_modify_printer(papi_service_t handle, char *dest,
595 p->name = strdup(dest);
601 p = getprinter(dest);
606 if (putprinter(dest, p) == -1) {
620 result = lpsched_load_unload_dest(handle, dest, S_LOAD_PRINTER);