diff options
author | Roger Dingledine <arma@torproject.org> | 2003-12-13 23:32:03 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-12-13 23:32:03 +0000 |
commit | 4d3d99fa0c5215bbaec94ba51424cdcedda3417a (patch) | |
tree | 9a67deb5f65adc0beecea153db113ca3349cd055 /src/common/util.h | |
parent | 325935b1c63de1874d8b7d7669fe543e26441b4a (diff) | |
download | tor-4d3d99fa0c5215bbaec94ba51424cdcedda3417a.tar tor-4d3d99fa0c5215bbaec94ba51424cdcedda3417a.tar.gz |
extend smartlist with a few smarter operations
svn:r910
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index b540181ff..c6a22c13a 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -48,7 +48,9 @@ typedef struct { smartlist_t *smartlist_create(int max_elements); void smartlist_free(smartlist_t *sl); void smartlist_add(smartlist_t *sl, void *element); -void smartlist_remove(smartlist_t *sl, void *element); +int smartlist_isin(smartlist_t *sl, void *element); +int smartlist_overlap(smartlist_t *sl1, smartlist_t *sl2); +void smartlist_intersect(smartlist_t *sl1, smartlist_t *sl2); void *smartlist_choose(smartlist_t *sl); const char *eat_whitespace(const char *s); |