Commit 2cc263b0 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Added tl_filtered_tlist().

darcs-hash:20050928190226-65a35-3f7caab817a3b2c5ade880307f4747dde06a09b6.gz
parent c0c99100
......@@ -135,6 +135,9 @@ tagi_t const *tl_find(tagi_t const lst[], tag_type_t tt);
tagi_t *tl_filter(tagi_t *, tagi_t const filter[], tagi_t const lst[], void **b);
tagi_t *tl_afilter(su_home_t *, tagi_t const filter[], tagi_t const lst[]);
tagi_t *tl_filtered_tlist(su_home_t *home, tagi_t const filter[],
tag_type_t tag, tag_value_t value, ...);
size_t tl_vlen(va_list ap);
tagi_t *tl_list(tag_type_t tag, tag_value_t value, ...);
tagi_t *tl_vlist2(tag_type_t tag, tag_value_t value, va_list ap);
......
......@@ -571,6 +571,22 @@ tagi_t *tl_tfilter(su_home_t *home, tagi_t const src[],
return tl;
}
/** Create a filtered tag list.
*/
tagi_t *tl_filtered_tlist(su_home_t *home, tagi_t const filter[],
tag_type_t tag, tag_value_t value, ...)
{
tagi_t *tl;
ta_list ta;
ta_start(ta, tag, value);
tl = tl_afilter(home, filter, ta_args(ta));
ta_end(ta);
return tl;
}
/** Remove listed tags from the list @a lst. */
int tl_tremove(tagi_t lst[], tag_type_t tag, tag_value_t value, ...)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment