Lines Matching defs:printer

108  *	ns_r_get_value(const char *key, const ns_printer_t *printer)
112 * const ns_printer_t *printer
113 * - printer to glean this from
120 ns_r_get_value(const char *key, const ns_printer_t *printer, int level)
124 if ((key == NULL) || (printer == NULL) ||
125 (printer->attributes == NULL))
132 if ((kvp = list_locate((void **)printer->attributes,
136 /* fill in an empty printer for a bsdaddr */
140 if (addr->printer == NULL)
141 addr->printer = strdup(printer->name);
147 for (attrs = printer->attributes; attrs != NULL && *attrs != NULL;
158 ns_printer_t *printer =
161 if ((value = ns_r_get_value(key, printer,
164 ns_printer_destroy(printer);
178 ns_printer_t *printer =
180 if ((value = ns_r_get_value(key, printer,
185 ns_printer_destroy(printer);
198 * in printer structure. The value is returned in a converted format.
201 ns_get_value(const char *key, const ns_printer_t *printer)
203 return (ns_r_get_value(key, printer, 0));
209 * printer structure passed in. The results is an ascii string.
212 ns_get_value_string(const char *key, const ns_printer_t *printer)
214 return ((char *)value_to_string(key, ns_get_value(key, printer)));
219 * ns_set_value() sets the passed in kvp in the passed in printer structure,
223 ns_set_value(const char *key, const void *value, ns_printer_t *printer)
226 value_to_string(key, (void *)value), printer));
231 * ns_set_value_from_string() sets the passed in kvp in the passed in printer
236 ns_printer_t *printer)
238 if (printer == NULL)
242 list_iterate((void **)printer->attributes,
247 if (((kvp = list_locate((void **)printer->attributes,
252 printer->attributes = (ns_kvp_t **)
253 list_append((void **)printer->attributes, kvp);