aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/misc.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-02-02 13:06:02 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-06-04 11:20:28 +0200
commit32c49ea1348b1843ba1829dbaed15382d4c0767d (patch)
treed0235efb684cf91ddb6ddf949dd3e6314a704c24 /include/libssh/misc.h
parenta465ea2d49539af1d2575498a5ce45e51980d982 (diff)
downloadlibssh-32c49ea1348b1843ba1829dbaed15382d4c0767d.tar.gz
libssh-32c49ea1348b1843ba1829dbaed15382d4c0767d.tar.xz
libssh-32c49ea1348b1843ba1829dbaed15382d4c0767d.zip
misc: Add ssh_list_count()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/misc.h')
-rw-r--r--include/libssh/misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/misc.h b/include/libssh/misc.h
index 128e2ba9..6aaeee7c 100644
--- a/include/libssh/misc.h
+++ b/include/libssh/misc.h
@@ -54,6 +54,7 @@ struct ssh_list *ssh_list_new(void);
void ssh_list_free(struct ssh_list *list);
struct ssh_iterator *ssh_list_get_iterator(const struct ssh_list *list);
struct ssh_iterator *ssh_list_find(const struct ssh_list *list, void *value);
+size_t ssh_list_count(const struct ssh_list *list);
int ssh_list_append(struct ssh_list *list, const void *data);
int ssh_list_prepend(struct ssh_list *list, const void *data);
void ssh_list_remove(struct ssh_list *list, struct ssh_iterator *iterator);