freebsd-dev/lib/libnv/tests
Mariusz Zaborski 347a39b4a6 Add support for the arrays in nvlist library.
- Add
  nvlist_{add,get,take,move,exists,free}_{number,bool,string,nvlist,
  descriptor} functions.
- Add support for (un)packing arrays.
- Add the nvl_array_next field to the nvlist structure.
  If an array is added by the nvlist_{move,add}_nvlist_array function
  this field will contains next element in the array.
- Add the nitems field to the nvpair and nvpair_header structure.
  This field contains number of elements in the array.
- Add special flag (NV_FLAG_IN_ARRAY) which is set if nvlist is a part of
  an array.
- Add special type (NV_TYPE_NVLIST_ARRAY_NEXT).This type is used only
  on packing/unpacking.
- Add new API for traversing arrays (nvlist_get_array_next).
- Add the nvlist_get_pararr function which combines the
  nvlist_get_array_next and nvlist_get_parent functions. If nvlist is in
  the array it will return next element from array. If nvlist is last
  element in array or it isn't in array it will return his
  container (parent). This function should simplify traveling over nvlist.
- Add tests for new features.
- Add documentation for new functions.
- Add my copyright.
- Regenerate the sys/cddl/compat/opensolaris/sys/nvpair.h file.

PR:		191083
Reviewed by:	allanjude (doc)
Approved by:	pjd (mentor)
2015-08-15 06:34:49 +00:00
..
dnv_tests.cc Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
Makefile Add support for the arrays in nvlist library. 2015-08-15 06:34:49 +00:00
nv_array_tests.cc Add support for the arrays in nvlist library. 2015-08-15 06:34:49 +00:00
nv_tests.cc Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
nvlist_add_test.c Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
nvlist_exists_test.c Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
nvlist_free_test.c Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
nvlist_get_test.c Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
nvlist_move_test.c Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
nvlist_send_recv_test.c Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00