11.3Schristos/* $NetBSD: nvlist_impl.h,v 1.3 2018/09/11 02:20:31 christos Exp $ */ 21.2Schristos 31.1Schristos/*- 41.1Schristos * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 51.1Schristos * 61.1Schristos * Copyright (c) 2013 The FreeBSD Foundation 71.1Schristos * Copyright (c) 2013-2015 Mariusz Zaborski <oshogbo@FreeBSD.org> 81.1Schristos * All rights reserved. 91.1Schristos * 101.1Schristos * This software was developed by Pawel Jakub Dawidek under sponsorship from 111.1Schristos * the FreeBSD Foundation. 121.1Schristos * 131.1Schristos * Redistribution and use in source and binary forms, with or without 141.1Schristos * modification, are permitted provided that the following conditions 151.1Schristos * are met: 161.1Schristos * 1. Redistributions of source code must retain the above copyright 171.1Schristos * notice, this list of conditions and the following disclaimer. 181.1Schristos * 2. Redistributions in binary form must reproduce the above copyright 191.1Schristos * notice, this list of conditions and the following disclaimer in the 201.1Schristos * documentation and/or other materials provided with the distribution. 211.1Schristos * 221.1Schristos * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 231.1Schristos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 241.1Schristos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 251.1Schristos * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 261.1Schristos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 271.1Schristos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 281.1Schristos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 291.1Schristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 301.1Schristos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 311.1Schristos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 321.1Schristos * SUCH DAMAGE. 331.1Schristos * 341.1Schristos * $FreeBSD: head/sys/contrib/libnv/nvlist_impl.h 328474 2018-01-27 12:58:21Z oshogbo $ 351.1Schristos */ 361.1Schristos 371.1Schristos#ifndef _NVLIST_IMPL_H_ 381.1Schristos#define _NVLIST_IMPL_H_ 391.1Schristos 401.2Schristos#ifdef __FreeBSD__ 411.1Schristos#include <sys/nv.h> 421.2Schristos#else 431.2Schristos#include "nv.h" 441.2Schristos#endif 451.1Schristos 461.2Schristos#if !defined(_KERNEL) && !defined(_STANDALONE) 471.1Schristos#include <stdint.h> 481.1Schristos#endif 491.1Schristos 501.3Schristos__dead void nvlist_report_missing(int type, const char *name); 511.1Schristosnvpair_t *nvlist_get_nvpair_parent(const nvlist_t *nvl); 521.1Schristosconst unsigned char *nvlist_unpack_header(nvlist_t *nvl, 531.1Schristos const unsigned char *ptr, size_t nfds, bool *isbep, size_t *leftp); 541.1Schristos 551.1Schristos#endif /* !_NVLIST_IMPL_H_ */ 56