1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-23 16:01:42 +00:00

Move the nvlist source and private includes from sys/kern to seperate

directory sys/contrib/libnv.

The goal of this operation is to NOT install header files which shouldn't
be used outside the nvlist library.

Approved by:	pjd (mentor)
This commit is contained in:
Mariusz Zaborski 2015-07-04 16:33:37 +00:00
parent 06844c0f7e
commit 54f98da930
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285139
8 changed files with 21 additions and 20 deletions

View File

@ -7,13 +7,13 @@ SHLIBDIR?= /lib
LIB= nv
SHLIB_MAJOR= 0
.PATH: ${.CURDIR}/../../sys/kern ${.CURDIR}/../../sys/sys
.PATH: ${.CURDIR}/../../sys/contrib/libnv ${.CURDIR}/../../sys/sys
CFLAGS+=-I${.CURDIR}/../../sys -I${.CURDIR}
SRCS= subr_dnvlist.c
SRCS= dnvlist.c
SRCS+= msgio.c
SRCS+= subr_nvlist.c
SRCS+= subr_nvpair.c
SRCS+= nvlist.c
SRCS+= nvpair.c
WARNS?= 6

View File

@ -476,6 +476,9 @@ contrib/libfdt/fdt_rw.c optional fdt
contrib/libfdt/fdt_strerror.c optional fdt
contrib/libfdt/fdt_sw.c optional fdt
contrib/libfdt/fdt_wip.c optional fdt
contrib/libnv/dnvlist.c standard
contrib/libnv/nvlist.c standard
contrib/libnv/nvpair.c standard
contrib/ngatm/netnatm/api/cc_conn.c optional ngatm_ccatm \
compile-with "${NORMAL_C_NOWERROR} -I$S/contrib/ngatm"
contrib/ngatm/netnatm/api/cc_data.c optional ngatm_ccatm \
@ -3054,7 +3057,6 @@ kern/subr_clock.c standard
kern/subr_counter.c standard
kern/subr_devstat.c standard
kern/subr_disk.c standard
kern/subr_dnvlist.c standard
kern/subr_eventhandler.c standard
kern/subr_fattime.c standard
kern/subr_firmware.c optional firmware
@ -3068,8 +3070,6 @@ kern/subr_mbpool.c optional libmbpool
kern/subr_mchain.c optional libmchain
kern/subr_module.c standard
kern/subr_msgbuf.c standard
kern/subr_nvlist.c standard
kern/subr_nvpair.c standard
kern/subr_param.c standard
kern/subr_pcpu.c standard
kern/subr_pctrie.c standard

View File

@ -47,10 +47,10 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#endif
#include <sys/nv.h>
#include <sys/nv_impl.h>
#include <sys/dnv.h>
#include <sys/nv.h>
#include "nv_impl.h"
#define DNVLIST_GET(ftype, type) \
ftype \

View File

@ -65,9 +65,10 @@ __FBSDID("$FreeBSD$");
#endif
#include <sys/nv.h>
#include <sys/nv_impl.h>
#include <sys/nvlist_impl.h>
#include <sys/nvpair_impl.h>
#include "nv_impl.h"
#include "nvlist_impl.h"
#include "nvpair_impl.h"
#ifndef HAVE_PJDLOG
#ifdef _KERNEL

View File

@ -32,12 +32,12 @@
#ifndef _NVLIST_IMPL_H_
#define _NVLIST_IMPL_H_
#include <sys/nv.h>
#ifndef _KERNEL
#include <stdint.h>
#endif
#include "nv.h"
nvpair_t *nvlist_get_nvpair_parent(const nvlist_t *nvl);
const unsigned char *nvlist_unpack_header(nvlist_t *nvl,
const unsigned char *ptr, size_t nfds, bool *isbep, size_t *leftp);

View File

@ -61,9 +61,10 @@ __FBSDID("$FreeBSD$");
#endif
#include <sys/nv.h>
#include <sys/nv_impl.h>
#include <sys/nvlist_impl.h>
#include <sys/nvpair_impl.h>
#include "nv_impl.h"
#include "nvlist_impl.h"
#include "nvpair_impl.h"
#ifndef HAVE_PJDLOG
#ifdef _KERNEL

View File

@ -32,14 +32,13 @@
#ifndef _NVPAIR_IMPL_H_
#define _NVPAIR_IMPL_H_
#include <sys/nv.h>
#include <sys/queue.h>
#ifndef _KERNEL
#include <stdint.h>
#endif
#include "nv.h"
TAILQ_HEAD(nvl_head, nvpair);
void nvpair_assert(const nvpair_t *nvp);