Lines Matching refs:printer
66 * void ns_printer_destroy(ns_printer_t *printer)
68 * ns_printer_t *printer - a pointer to the printer "object" to destroy
70 * This function will free all of the memory associated with a printer
77 ns_printer_destroy(ns_printer_t *printer)
79 if (printer != NULL) {
80 if (printer->attributes != NULL) { /* attributes */
83 list_iterate((void **)printer->attributes,
85 free(printer->attributes);
87 if (printer->aliases != NULL) { /* aliases */
88 free(printer->aliases);
90 if (printer->name != NULL) /* primary name */
91 free(printer->name);
92 free(printer);
101 * ns_printer_t ** (return value) - an array of pointers to printer
104 * This function will return a list of all printer objects found in every
117 ns_printer_t *printer =
122 (void *)printer);
132 * This function looks for the named printer in the supplied
143 * Reset printer entries to the start so we know we will always
161 * int ns_printer_put(const ns_printer_t *printer)
163 * const ns_printer_t *printer - a printer object
165 * This function attempts to put the data in the printer object back
169 ns_printer_put(const ns_printer_t *printer)
174 if ((printer == NULL) || (printer->source == NULL))
178 normalize_ns_name(printer->source)) >= sizeof (func)) {
184 return ((*fpt)(printer));