summaryrefslogtreecommitdiff
path: root/common/array.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-01-18 16:11:06 +0100
committerStef Walter <stefw@gnome.org>2013-02-05 14:54:53 +0100
commit5e4a3ea9b8f254d99544490eed8e17e88c81f975 (patch)
tree91043d4d317195cf2d80aa572cab75d22dbd8f5e /common/array.h
parent4400d8ecc4525cfc848937dc562c542fc58a533a (diff)
downloadp11-kit-5e4a3ea9b8f254d99544490eed8e17e88c81f975.tar.gz
Add p11_array_clear() function
* Clears an array without freeing the array itself
Diffstat (limited to 'common/array.h')
-rw-r--r--common/array.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/array.h b/common/array.h
index 8964b83..94be29c 100644
--- a/common/array.h
+++ b/common/array.h
@@ -63,4 +63,6 @@ bool p11_array_push (p11_array *array,
void p11_array_remove (p11_array *array,
unsigned int index);
+void p11_array_clear (p11_array *array);
+
#endif /* __P11_ARRAY_H__ */