summaryrefslogtreecommitdiff
path: root/src/common/container.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-23 14:07:53 -0500
committerNick Mathewson <nickm@torproject.org>2016-11-30 14:42:52 -0500
commit21c47c44109a9de373f40c454e653953ba21312e (patch)
tree59c0d7000483b9f1e71f170cd57a2ede38c99b5b /src/common/container.h
parentbf64564e37c5fc01111bc476d1b93890b15a18bf (diff)
downloadtor-21c47c44109a9de373f40c454e653953ba21312e.tar.gz
tor-21c47c44109a9de373f40c454e653953ba21312e.zip
Add a smartlist_remove_keeporder() function, with tests.
Diffstat (limited to 'src/common/container.h')
-rw-r--r--src/common/container.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/container.h b/src/common/container.h
index 71495b660a..00c3ca81ad 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -33,6 +33,7 @@ void smartlist_clear(smartlist_t *sl);
void smartlist_add(smartlist_t *sl, void *element);
void smartlist_add_all(smartlist_t *sl, const smartlist_t *s2);
void smartlist_remove(smartlist_t *sl, const void *element);
+void smartlist_remove_keeporder(smartlist_t *sl, const void *element);
void *smartlist_pop_last(smartlist_t *sl);
void smartlist_reverse(smartlist_t *sl);
void smartlist_string_remove(smartlist_t *sl, const char *element);