diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-13 16:18:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-13 16:18:53 -0400 |
commit | 2253697a04c926edb1a5f18727a6cd24528730b1 (patch) | |
tree | 198f895422b3e2b68524311a7b2fd8fa8492e989 /src/common/container.h | |
parent | 5f2a1a7b4f20be121cd30def95cf7789924ca70a (diff) | |
download | tor-2253697a04c926edb1a5f18727a6cd24528730b1.tar.gz tor-2253697a04c926edb1a5f18727a6cd24528730b1.zip |
New smartlist function to see if two lists of strings are equal.
We'll use this to detect changes in CSV options.
Diffstat (limited to 'src/common/container.h')
-rw-r--r-- | src/common/container.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/container.h b/src/common/container.h index b39d4ca07e..f5e42de764 100644 --- a/src/common/container.h +++ b/src/common/container.h @@ -42,6 +42,8 @@ int smartlist_string_pos(const smartlist_t *, const char *elt) ATTR_PURE; int smartlist_string_isin_case(const smartlist_t *sl, const char *element) ATTR_PURE; int smartlist_string_num_isin(const smartlist_t *sl, int num) ATTR_PURE; +int smartlist_strings_eq(const smartlist_t *sl1, const smartlist_t *sl2) + ATTR_PURE; int smartlist_digest_isin(const smartlist_t *sl, const char *element) ATTR_PURE; int smartlist_overlap(const smartlist_t *sl1, const smartlist_t *sl2) |