diff options
author | rstone <rstone@FreeBSD.org> | 2015-03-01 00:01:36 +0000 |
---|---|---|
committer | rstone <rstone@FreeBSD.org> | 2015-03-01 00:01:36 +0000 |
commit | 36d118f597e5d6674261fc39130dcdea2fae438b (patch) | |
tree | 92d17c2207341c3afe63718efcc336aafeb82415 /lib/libnv | |
parent | 02270657113ff7b7e5556b1f149cc6f50d3b374e (diff) | |
download | FreeBSD-src-36d118f597e5d6674261fc39130dcdea2fae438b.zip FreeBSD-src-36d118f597e5d6674261fc39130dcdea2fae438b.tar.gz |
Make libnv headers includable from C++
Differential Revision: https://reviews.freebsd.org/D1868
Reviewed by: jfv, pjd
MFC after: 1 month
Sponsored by: Sandvine Inc.
Diffstat (limited to 'lib/libnv')
-rw-r--r-- | lib/libnv/dnv.h | 4 | ||||
-rw-r--r-- | lib/libnv/nv.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/libnv/dnv.h b/lib/libnv/dnv.h index ac1e57c..dd1d831 100644 --- a/lib/libnv/dnv.h +++ b/lib/libnv/dnv.h @@ -45,6 +45,8 @@ struct nvlist; typedef struct nvlist nvlist_t; #endif +__BEGIN_DECLS + /* * The dnvlist_get functions returns value associated with the given name. * If it returns a pointer, the pointer represents internal buffer and should @@ -103,4 +105,6 @@ nvlist_t *dnvlist_takev_nvlist(nvlist_t *nvl, nvlist_t *defval, const char *name int dnvlist_takev_descriptor(nvlist_t *nvl, int defval, const char *namefmt, va_list nameap) __printflike(3, 0); void *dnvlist_takev_binary(nvlist_t *nvl, size_t *sizep, void *defval, size_t defsize, const char *namefmt, va_list nameap) __printflike(5, 0); +__END_DECLS + #endif /* !_DNV_H_ */ diff --git a/lib/libnv/nv.h b/lib/libnv/nv.h index 9f0bb5d..738bc83 100644 --- a/lib/libnv/nv.h +++ b/lib/libnv/nv.h @@ -63,6 +63,8 @@ typedef struct nvlist nvlist_t; */ #define NV_FLAG_IGNORE_CASE 0x01 +__BEGIN_DECLS + nvlist_t *nvlist_create(int flags); void nvlist_destroy(nvlist_t *nvl); int nvlist_error(const nvlist_t *nvl); @@ -272,4 +274,6 @@ void nvlist_freev_nvlist(nvlist_t *nvl, const char *namefmt, va_list nameap) __p void nvlist_freev_descriptor(nvlist_t *nvl, const char *namefmt, va_list nameap) __printflike(2, 0); void nvlist_freev_binary(nvlist_t *nvl, const char *namefmt, va_list nameap) __printflike(2, 0); +__END_DECLS + #endif /* !_NV_H_ */ |