Changeset 3028 for pjproject/trunk/pjnath/src/pjnath/ice_strans.c
- Timestamp:
- Dec 8, 2009 1:11:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_strans.c
r2966 r3028 913 913 914 914 /* 915 * Get number of candidates 916 */ 917 PJ_DEF(unsigned) pj_ice_strans_get_cands_count(pj_ice_strans *ice_st, 918 unsigned comp_id) 919 { 920 unsigned i, cnt; 921 922 PJ_ASSERT_RETURN(ice_st && ice_st->ice && comp_id && 923 comp_id <= ice_st->comp_cnt, 0); 924 925 cnt = 0; 926 for (i=0; i<ice_st->ice->lcand_cnt; ++i) { 927 if (ice_st->ice->lcand[i].comp_id != comp_id) 928 continue; 929 ++cnt; 930 } 931 932 return cnt; 933 } 934 935 /* 915 936 * Enum candidates 916 937 */
Note: See TracChangeset
for help on using the changeset viewer.