Lines Matching defs:tmp

138 	PRINTER *tmp;
148 if ((tmp = getprinter(dest)) == NULL) {
156 "printer-name", tmp->name);
157 if (tmp->name != NULL) {
161 tmp->name);
167 if ((tmp->banner & BAN_OPTIONAL) == BAN_OPTIONAL)
170 else if (tmp->banner & BAN_NEVER)
173 else if (tmp->banner & BAN_ALWAYS)
178 if (tmp->input_types != NULL) {
181 for (i = 0; tmp->input_types[i] != NULL; i++)
184 lp_type_to_mime_type(tmp->input_types[i]));
189 "printer-info", tmp->description);
193 "device-uri", tmp->device);
195 "lpsched-dial-info", tmp->dial_info);
197 "lpsched-fault-recovery", tmp->fault_rec);
199 "lpsched-interface-script", tmp->interface);
201 "lpsched-data-rate", tmp->speed);
203 "lpsched-stty", tmp->stty);
205 "lpsched-login-term", tmp->login);
207 "lpsched-daisy", tmp->daisy);
209 "lpsched-charsets", tmp->char_sets);
212 "lpsched-modules", tmp->modules);
215 "lpsched-options", tmp->options);
217 "lpsched-printer-type", tmp->printer_types);
218 if (tmp->fault_alert.shcmd != NULL) {
221 tmp->fault_alert.shcmd);
224 tmp->fault_alert.Q);
227 tmp->fault_alert.W);
230 "lpsched-cpi-value", tmp->cpi.val);
232 "lpsched-cpi-unit", tmp->cpi.sc);
234 "lpsched-lpi-value", tmp->lpi.val);
236 "lpsched-lpi-unit", tmp->lpi.sc);
238 "lpsched-plen-value", tmp->plen.val);
240 "lpsched-plen-unit", tmp->plen.sc);
242 "lpsched-pwid-value", tmp->pwid.val);
244 "lpsched-pwid-unit", tmp->pwid.sc);
274 if (tmp->ppd != NULL) {
284 sysname.nodename, ETCDIR, tmp->name);
289 sysname.nodename, tmp->ppd);
293 "lpsched-ppd-source-path", tmp->ppd);
295 snprintf(buf, sizeof (buf), "%s/ppd/%s.ppd", ETCDIR, tmp->name);
305 freeprinter(tmp);
362 CLASS *tmp;
368 if ((tmp = getclass(dest)) == NULL) {
376 "printer-name", tmp->name);
377 if (tmp->name != NULL) {
381 tmp->name);
386 if (tmp->members != NULL) {
387 char **members = tmp->members;
396 freeclass(tmp);
432 attributes_to_printer(papi_attribute_t **attributes, PRINTER *tmp)
452 tmp->banner = flags;
463 if (tmp->input_types != NULL)
464 freelist(tmp->input_types);
465 tmp->input_types = list;
469 "device-uri", &tmp->device);
471 "printer-info", &tmp->description);
473 "lpsched-dial-info", &tmp->dial_info);
475 "lpsched-fault-recovery", &tmp->fault_rec);
477 "lpsched-interface-script", &tmp->interface);
479 "lpsched-data-rate", &tmp->speed);
481 "lpsched-stty", &tmp->stty);
483 "lpsched-charsets", &tmp->char_sets);
485 "lpsched-printer-types", &tmp->printer_types);
487 "lpsched-options", &tmp->options);
489 "lpsched-modules", &tmp->modules);
492 "lpsched-printer-ppd-uri", &tmp->ppd);