aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/cnv.h
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2017-10-26 20:44:42 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2017-10-26 20:44:42 +0000
commit23c5a51e92dfe00ea297be0caff1ff2ec9fe4c93 (patch)
tree2d4d144c46735aaa4a05ec943af9ac47bd9b5eae /sys/sys/cnv.h
parentdf485bdb3ce1e7347de7dac08130926dac10ada4 (diff)
downloadsrc-23c5a51e92dfe00ea297be0caff1ff2ec9fe4c93.tar.gz
src-23c5a51e92dfe00ea297be0caff1ff2ec9fe4c93.zip
Introduce cnvlist_name() and cnvlist_type() functions.
Those function can be used when we are iterating over nvlist to reduce amount of extra variables we need to declare. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=325019
Diffstat (limited to 'sys/sys/cnv.h')
-rw-r--r--sys/sys/cnv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/cnv.h b/sys/sys/cnv.h
index 8b76e596bf2e..c89eed37df3e 100644
--- a/sys/sys/cnv.h
+++ b/sys/sys/cnv.h
@@ -48,6 +48,12 @@ typedef struct nvlist nvlist_t;
__BEGIN_DECLS
/*
+ * Functions which returns information about the given cookie.
+ */
+const char *cnvlist_name(void *cookiep);
+int cnvlist_type(void *cookiep);
+
+/*
* The cnvlist_get functions returns value associated with the given cookie.
* If it returns a pointer, the pointer represents internal buffer and should
* not be freed by the caller.