Lines Matching defs:value
46 * kvp_create(const char *key, const void *value)
49 * - key for key/value pair
50 * const void *value
51 * - value for key/value pair
53 * ns_kvp_t * (return value)
54 * - pointer to structure containing the key/value pair
58 ns_kvp_create(const char *key, const char *value)
64 kvp->value = (char *)value;
75 if (kvp->value != NULL)
76 free(kvp->value);
89 * - key/value pair to check
93 * int (return value)
115 * char * (return value)
134 void *value = string_to_value(key, kvp->value);
138 ns_bsd_addr_t *addr = value;
143 return (value);
149 void *value = NULL;
156 (*attrs)->value);
161 if ((value = ns_r_get_value(key, printer,
163 return (value);
170 (*attrs)->value);
172 if ((value = ns_r_get_value(key, *printers,
174 return (value);
179 ns_printer_get_name((*attrs)->value, NULL);
180 if ((value = ns_r_get_value(key, printer,
182 string = value_to_string(string, value);
184 value = string_to_value(key, string);
188 if (value != NULL)
189 return (value);
197 * ns_get_value() gets the value of the passed in attribute from the passed
198 * in printer structure. The value is returned in a converted format.
208 * ns_get_value_string() gets the value of the key passed in from the
220 * This is done by converting the value to a string first.
223 ns_set_value(const char *key, const void *value, ns_printer_t *printer)
226 value_to_string(key, (void *)value), printer));
256 kvp->value = strdup(string);
258 kvp->value = NULL;