Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
sofia-sip
Commits
2cc263b0
Commit
2cc263b0
authored
Sep 28, 2005
by
Pekka Pessi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tl_filtered_tlist().
darcs-hash:20050928190226-65a35-3f7caab817a3b2c5ade880307f4747dde06a09b6.gz
parent
c0c99100
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
libsofia-sip-ua/su/su_tag.h
libsofia-sip-ua/su/su_tag.h
+3
-0
libsofia-sip-ua/su/su_taglist.c
libsofia-sip-ua/su/su_taglist.c
+16
-0
No files found.
libsofia-sip-ua/su/su_tag.h
View file @
2cc263b0
...
...
@@ -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
);
...
...
libsofia-sip-ua/su/su_taglist.c
View file @
2cc263b0
...
...
@@ -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
,
...)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment