| 1910 | #undef NVLIST_GET |
| 1911 | |
| 1912 | const void * |
| 1913 | nvlist_get_binary(const nvlist_t *nvl, const char *name, size_t *sizep) |
| 1914 | { |
| 1915 | nvpair_t *nvp; |
| 1916 | |
| 1917 | nvp = nvlist_find(nvl, NV_TYPE_BINARY, name); |
| 1918 | if (nvp == NULL) |
| 1919 | nvlist_report_missing(NV_TYPE_BINARY, name); |
| 1920 | |
| 1921 | return (nvpair_get_binary(nvp, sizep)); |
| 1922 | } |
| 1923 | |
| 1924 | #define NVLIST_GET_ARRAY(ftype, type, TYPE) \ |
| 1925 | ftype \ |
no test coverage detected