Lines Matching refs:printer
53 * - primary name of printer
55 * - aliases for printer
62 * - pointer to printer object structure
69 ns_printer_t *printer;
71 if ((printer = (ns_printer_t *)calloc(1, sizeof (*printer))) != NULL) {
72 printer->name = (char *)name;
73 printer->aliases = (char **)aliases;
74 printer->source = (char *)source;
75 printer->attributes = (ns_kvp_t **)attributes;
77 return (printer);
90 * ns_printer_match_name(const ns_printer_t *printer, const char *name)
92 * const ns_printer_t *printer
102 ns_printer_match_name(ns_printer_t *printer, const char *name)
104 if ((printer == NULL) || (printer->name == NULL) || (name == NULL))
107 if ((strcmp(printer->name, name) == 0) ||
108 (list_locate((void **)printer->aliases,
131 * char *ns_printer_name_list(const ns_printer_t *printer)
133 * const ns_printer_t *printer - printer object to generate list from
136 * the printer
139 ns_printer_name_list(const ns_printer_t *printer)
143 if ((printer == NULL) || (printer->name == NULL))
146 if (snprintf(buf, sizeof (buf), "%s|", printer->name) >= sizeof (buf)) {
151 list_iterate((void **)printer->aliases,