Ryan Stone
a87e516267
Add function to force an nvlist into the error state
...
Add an nvlist_set_error() function that can be used to force an
nvlist into the error state. This is useful both for writing
tests and for writing APIs that use nvlists internally.
Differential Revision: https://reviews.freebsd.org/D1878
Reviewed by: pjd, jfv
MFC After: 1 month
Sponsored by: Sandvine Inc.
2015-03-01 00:22:23 +00:00
Pawel Jakub Dawidek
aa2e2bdaf2
Modify nvlist_get_parent() API to take additional cookie argument.
...
This allow for non-recursive iteration over nested nvlists, as in documented
example.
Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
2015-01-30 10:08:38 +00:00
Pawel Jakub Dawidek
19a5e7fede
Document the new nvlist_get_parent() function.
...
Submitted by: Mariusz Zaborski
2014-09-25 10:59:01 +00:00
Baptiste Daroussin
2b7af31cf5
use .Mt to mark up email addresses consistently (part3)
...
PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>
2014-06-23 08:23:05 +00:00
Ryan Stone
888fc9f245
Correct a typo.
...
MFC after: 1 week
2014-05-17 20:39:39 +00:00
Bryan Drewery
97d1a20dfb
nv(3) was not in 10.0.
...
It might be MFC'd to stable/10 for 10.1, but for now update the manual to
avoid confusion on its availability.
Discussed with: pjd
2014-03-21 15:30:31 +00:00
Pawel Jakub Dawidek
36da5199bb
Bring in libnv library for managing name/value pairs. The following types
...
are currently supported:
- NV_TYPE_NULL - only name, no data;
- NV_TYPE_BOOL - boolean (true or false);
- NV_TYPE_NUMBER - 64bit unsigned integer;
- NV_TYPE_STRING - C string;
- NV_TYPE_NVLIST - nested nvlist;
- NV_TYPE_DESCRIPTOR - file descriptor;
- NV_TYPE_BINARY - binary data.
For detailed documentation and examples see nv(3) manual page.
Sponsored by: The FreeBSD Foundation
2013-11-12 19:39:14 +00:00