Lines Matching refs:name

118  * The nvlist_exists functions check if the given name (optionally of the given
122 bool nvlist_exists(const nvlist_t *nvl, const char *name);
123 bool nvlist_exists_type(const nvlist_t *nvl, const char *name, int type);
125 bool nvlist_exists_null(const nvlist_t *nvl, const char *name);
126 bool nvlist_exists_bool(const nvlist_t *nvl, const char *name);
127 bool nvlist_exists_number(const nvlist_t *nvl, const char *name);
128 bool nvlist_exists_string(const nvlist_t *nvl, const char *name);
129 bool nvlist_exists_nvlist(const nvlist_t *nvl, const char *name);
130 bool nvlist_exists_binary(const nvlist_t *nvl, const char *name);
131 bool nvlist_exists_bool_array(const nvlist_t *nvl, const char *name);
132 bool nvlist_exists_number_array(const nvlist_t *nvl, const char *name);
133 bool nvlist_exists_string_array(const nvlist_t *nvl, const char *name);
134 bool nvlist_exists_nvlist_array(const nvlist_t *nvl, const char *name);
136 bool nvlist_exists_descriptor(const nvlist_t *nvl, const char *name);
137 bool nvlist_exists_descriptor_array(const nvlist_t *nvl, const char *name);
141 * The nvlist_add functions add the given name/value pair.
146 void nvlist_add_null(nvlist_t *nvl, const char *name);
147 void nvlist_add_bool(nvlist_t *nvl, const char *name, bool value);
148 void nvlist_add_number(nvlist_t *nvl, const char *name, uint64_t value);
149 void nvlist_add_string(nvlist_t *nvl, const char *name, const char *value);
150 void nvlist_add_stringf(nvlist_t *nvl, const char *name, const char *valuefmt, ...) __printflike(3, 4);
152 void nvlist_add_stringv(nvlist_t *nvl, const char *name, const char *valuefmt, va_list valueap) __printflike(3, 0);
154 void nvlist_add_nvlist(nvlist_t *nvl, const char *name, const nvlist_t *value);
155 void nvlist_add_binary(nvlist_t *nvl, const char *name, const void *value, size_t size);
156 void nvlist_add_bool_array(nvlist_t *nvl, const char *name, const bool *value, size_t nitems);
157 void nvlist_add_number_array(nvlist_t *nvl, const char *name, const uint64_t *value, size_t nitems);
158 void nvlist_add_string_array(nvlist_t *nvl, const char *name, const char * const *value, size_t nitems);
159 void nvlist_add_nvlist_array(nvlist_t *nvl, const char *name, const nvlist_t * const *value, size_t nitems);
161 void nvlist_add_descriptor(nvlist_t *nvl, const char *name, int value);
162 void nvlist_add_descriptor_array(nvlist_t *nvl, const char *name, const int *value, size_t nitems);
165 void nvlist_append_bool_array(nvlist_t *nvl, const char *name, const bool value);
166 void nvlist_append_number_array(nvlist_t *nvl, const char *name, const uint64_t value);
167 void nvlist_append_string_array(nvlist_t *nvl, const char *name, const char * const value);
168 void nvlist_append_nvlist_array(nvlist_t *nvl, const char *name, const nvlist_t * const value);
170 void nvlist_append_descriptor_array(nvlist_t *nvl, const char *name, int value);
174 * The nvlist_move functions add the given name/value pair.
178 void nvlist_move_string(nvlist_t *nvl, const char *name, char *value);
179 void nvlist_move_nvlist(nvlist_t *nvl, const char *name, nvlist_t *value);
180 void nvlist_move_binary(nvlist_t *nvl, const char *name, void *value, size_t size);
181 void nvlist_move_bool_array(nvlist_t *nvl, const char *name, bool *value, size_t nitems);
182 void nvlist_move_string_array(nvlist_t *nvl, const char *name, char **value, size_t nitems);
183 void nvlist_move_nvlist_array(nvlist_t *nvl, const char *name, nvlist_t **value, size_t nitems);
184 void nvlist_move_number_array(nvlist_t *nvl, const char *name, uint64_t *value, size_t nitems);
186 void nvlist_move_descriptor(nvlist_t *nvl, const char *name, int value);
187 void nvlist_move_descriptor_array(nvlist_t *nvl, const char *name, int *value, size_t nitems);
191 * The nvlist_get functions returns value associated with the given name.
196 bool nvlist_get_bool(const nvlist_t *nvl, const char *name);
197 uint64_t nvlist_get_number(const nvlist_t *nvl, const char *name);
198 const char *nvlist_get_string(const nvlist_t *nvl, const char *name);
199 const nvlist_t *nvlist_get_nvlist(const nvlist_t *nvl, const char *name);
200 const void *nvlist_get_binary(const nvlist_t *nvl, const char *name, size_t *sizep);
201 const bool *nvlist_get_bool_array(const nvlist_t *nvl, const char *name, size_t *nitemsp);
202 const uint64_t *nvlist_get_number_array(const nvlist_t *nvl, const char *name, size_t *nitemsp);
203 const char * const *nvlist_get_string_array(const nvlist_t *nvl, const char *name, size_t *nitemsp);
204 const nvlist_t * const *nvlist_get_nvlist_array(const nvlist_t *nvl, const char *name, size_t *nitemsp);
206 int nvlist_get_descriptor(const nvlist_t *nvl, const char *name);
207 const int *nvlist_get_descriptor_array(const nvlist_t *nvl, const char *name, size_t *nitemsp);
211 * The nvlist_take functions returns value associated with the given name and
216 bool nvlist_take_bool(nvlist_t *nvl, const char *name);
217 uint64_t nvlist_take_number(nvlist_t *nvl, const char *name);
218 char *nvlist_take_string(nvlist_t *nvl, const char *name);
219 nvlist_t *nvlist_take_nvlist(nvlist_t *nvl, const char *name);
220 void *nvlist_take_binary(nvlist_t *nvl, const char *name, size_t *sizep);
221 bool *nvlist_take_bool_array(nvlist_t *nvl, const char *name, size_t *nitemsp);
222 uint64_t *nvlist_take_number_array(nvlist_t *nvl, const char *name, size_t *nitemsp);
223 char **nvlist_take_string_array(nvlist_t *nvl, const char *name, size_t *nitemsp);
224 nvlist_t **nvlist_take_nvlist_array(nvlist_t *nvl, const char *name, size_t *nitemsp);
226 int nvlist_take_descriptor(nvlist_t *nvl, const char *name);
227 int *nvlist_take_descriptor_array(nvlist_t *nvl, const char *name, size_t *nitemsp);
231 * The nvlist_free functions removes the given name/value pair from the nvlist
235 void nvlist_free(nvlist_t *nvl, const char *name);
236 void nvlist_free_type(nvlist_t *nvl, const char *name, int type);
238 void nvlist_free_null(nvlist_t *nvl, const char *name);
239 void nvlist_free_bool(nvlist_t *nvl, const char *name);
240 void nvlist_free_number(nvlist_t *nvl, const char *name);
241 void nvlist_free_string(nvlist_t *nvl, const char *name);
242 void nvlist_free_nvlist(nvlist_t *nvl, const char *name);
243 void nvlist_free_binary(nvlist_t *nvl, const char *name);
244 void nvlist_free_bool_array(nvlist_t *nvl, const char *name);
245 void nvlist_free_number_array(nvlist_t *nvl, const char *name);
246 void nvlist_free_string_array(nvlist_t *nvl, const char *name);
247 void nvlist_free_nvlist_array(nvlist_t *nvl, const char *name);
248 void nvlist_free_binary_array(nvlist_t *nvl, const char *name);
250 void nvlist_free_descriptor(nvlist_t *nvl, const char *name);
251 void nvlist_free_descriptor_array(nvlist_t *nvl, const char *name);