aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/cnv.h
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2018-06-18 21:18:20 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2018-06-18 21:18:20 +0000
commit0db44d5550ebc840bbd7bf4fbf32d0c49e9dfe93 (patch)
tree30485f2572b591ba0326234f49f4c33576eab9b3 /sys/sys/cnv.h
parentf4cc2d1710068319774a27d5c5e7ff85856c9278 (diff)
downloadsrc-0db44d5550ebc840bbd7bf4fbf32d0c49e9dfe93.tar.gz
src-0db44d5550ebc840bbd7bf4fbf32d0c49e9dfe93.zip
libnv: change name of cookie from cookiep to cookie.
The name was inconsistent with rest of the library. No functional change intended. Pointed out by: pjd@
Notes
Notes: svn path=/head/; revision=335341
Diffstat (limited to 'sys/sys/cnv.h')
-rw-r--r--sys/sys/cnv.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/sys/sys/cnv.h b/sys/sys/cnv.h
index 7b31f03ac042..9726cee19780 100644
--- a/sys/sys/cnv.h
+++ b/sys/sys/cnv.h
@@ -52,8 +52,8 @@ __BEGIN_DECLS
/*
* Functions which returns information about the given cookie.
*/
-const char *cnvlist_name(void *cookiep);
-int cnvlist_type(void *cookiep);
+const char *cnvlist_name(void *cookie);
+int cnvlist_type(void *cookie);
/*
* The cnvlist_get functions returns value associated with the given cookie.
@@ -61,18 +61,18 @@ int cnvlist_type(void *cookiep);
* not be freed by the caller.
*/
-bool cnvlist_get_bool(void *cookiep);
-uint64_t cnvlist_get_number(void *cookiep);
-const char *cnvlist_get_string(void *cookiep);
-const nvlist_t *cnvlist_get_nvlist(void *cookiep);
-const void *cnvlist_get_binary(void *cookiep, size_t *sizep);
-const bool *cnvlist_get_bool_array(void *cookiep, size_t *nitemsp);
-const uint64_t *cnvlist_get_number_array(void *cookiep, size_t *nitemsp);
-const char * const *cnvlist_get_string_array(void *cookiep, size_t *nitemsp);
-const nvlist_t * const *cnvlist_get_nvlist_array(void *cookiep, size_t *nitemsp);
+bool cnvlist_get_bool(void *cookie);
+uint64_t cnvlist_get_number(void *cookie);
+const char *cnvlist_get_string(void *cookie);
+const nvlist_t *cnvlist_get_nvlist(void *cookie);
+const void *cnvlist_get_binary(void *cookie, size_t *sizep);
+const bool *cnvlist_get_bool_array(void *cookie, size_t *nitemsp);
+const uint64_t *cnvlist_get_number_array(void *cookie, size_t *nitemsp);
+const char * const *cnvlist_get_string_array(void *cookie, size_t *nitemsp);
+const nvlist_t * const *cnvlist_get_nvlist_array(void *cookie, size_t *nitemsp);
#ifndef _KERNEL
-int cnvlist_get_descriptor(void *cookiep);
-const int *cnvlist_get_descriptor_array(void *cookiep, size_t *nitemsp);
+int cnvlist_get_descriptor(void *cookie);
+const int *cnvlist_get_descriptor_array(void *cookie, size_t *nitemsp);
#endif
@@ -82,18 +82,18 @@ const int *cnvlist_get_descriptor_array(void *cookiep, size_t *nitemsp);
* The caller is responsible for freeing received data.
*/
-bool cnvlist_take_bool(nvlist_t *nvl, void *cookiep);
-uint64_t cnvlist_take_number(nvlist_t *nvl, void *cookiep);
-char *cnvlist_take_string(nvlist_t *nvl, void *cookiep);
-nvlist_t *cnvlist_take_nvlist(nvlist_t *nvl, void *cookiep);
-void *cnvlist_take_binary(nvlist_t *nvl, void *cookiep, size_t *sizep);
-bool *cnvlist_take_bool_array(nvlist_t *nvl, void *cookiep, size_t *nitemsp);
-uint64_t *cnvlist_take_number_array(nvlist_t *nvl, void *cookiep, size_t *nitemsp);
-char **cnvlist_take_string_array(nvlist_t *nvl, void *cookiep, size_t *nitemsp);
-nvlist_t **cnvlist_take_nvlist_array(nvlist_t *nvl, void *cookiep, size_t *nitemsp);
+bool cnvlist_take_bool(nvlist_t *nvl, void *cookie);
+uint64_t cnvlist_take_number(nvlist_t *nvl, void *cookie);
+char *cnvlist_take_string(nvlist_t *nvl, void *cookie);
+nvlist_t *cnvlist_take_nvlist(nvlist_t *nvl, void *cookie);
+void *cnvlist_take_binary(nvlist_t *nvl, void *cookie, size_t *sizep);
+bool *cnvlist_take_bool_array(nvlist_t *nvl, void *cookie, size_t *nitemsp);
+uint64_t *cnvlist_take_number_array(nvlist_t *nvl, void *cookie, size_t *nitemsp);
+char **cnvlist_take_string_array(nvlist_t *nvl, void *cookie, size_t *nitemsp);
+nvlist_t **cnvlist_take_nvlist_array(nvlist_t *nvl, void *cookie, size_t *nitemsp);
#ifndef _KERNEL
-int cnvlist_take_descriptor(nvlist_t *nvl, void *cookiep);
-int *cnvlist_take_descriptor_array(nvlist_t *nvl, void *cookiep, size_t *nitemsp);
+int cnvlist_take_descriptor(nvlist_t *nvl, void *cookie);
+int *cnvlist_take_descriptor_array(nvlist_t *nvl, void *cookie, size_t *nitemsp);
#endif
/*
@@ -101,18 +101,18 @@ int *cnvlist_take_descriptor_array(nvlist_t *nvl, void *cookiep, size_t *nite
* and frees memory associated with it.
*/
-void cnvlist_free_bool(nvlist_t *nvl, void *cookiep);
-void cnvlist_free_number(nvlist_t *nvl, void *cookiep);
-void cnvlist_free_string(nvlist_t *nvl, void *cookiep);
-void cnvlist_free_nvlist(nvlist_t *nvl, void *cookiep);
-void cnvlist_free_binary(nvlist_t *nvl, void *cookiep);
-void cnvlist_free_bool_array(nvlist_t *nvl, void *cookiep);
-void cnvlist_free_number_array(nvlist_t *nvl, void *cookiep);
-void cnvlist_free_string_array(nvlist_t *nvl, void *cookiep);
-void cnvlist_free_nvlist_array(nvlist_t *nvl, void *cookiep);
+void cnvlist_free_bool(nvlist_t *nvl, void *cookie);
+void cnvlist_free_number(nvlist_t *nvl, void *cookie);
+void cnvlist_free_string(nvlist_t *nvl, void *cookie);
+void cnvlist_free_nvlist(nvlist_t *nvl, void *cookie);
+void cnvlist_free_binary(nvlist_t *nvl, void *cookie);
+void cnvlist_free_bool_array(nvlist_t *nvl, void *cookie);
+void cnvlist_free_number_array(nvlist_t *nvl, void *cookie);
+void cnvlist_free_string_array(nvlist_t *nvl, void *cookie);
+void cnvlist_free_nvlist_array(nvlist_t *nvl, void *cookie);
#ifndef _KERNEL
-void cnvlist_free_descriptor(nvlist_t *nvl, void *cookiep);
-void cnvlist_free_descriptor_array(nvlist_t *nvl, void *cookiep);
+void cnvlist_free_descriptor(nvlist_t *nvl, void *cookie);
+void cnvlist_free_descriptor_array(nvlist_t *nvl, void *cookie);
#endif
__END_DECLS