Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (7 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjsip/src/pjsip-simple/evsub.c

    r5254 r5513  
    155155    "None", 
    156156    "UAC_REFRESH", 
    157     "UAS_TIMEOUT" 
     157    "UAS_TIMEOUT", 
    158158    "UAC_TERMINATE", 
    159159    "UAC_WAIT_NOTIFY", 
     
    413413 
    414414    PJ_ASSERT_RETURN(pkg_mod && event_name, PJ_EINVAL); 
    415     PJ_ASSERT_RETURN(accept_cnt < PJ_ARRAY_SIZE(pkg->pkg_accept->values),  
     415     
     416    /* Make sure accept_cnt < PJ_ARRAY_SIZE(pkg->pkg_accept->values) */ 
     417    PJ_ASSERT_RETURN(accept_cnt <= PJSIP_GENERIC_ARRAY_MAX_COUNT,  
    416418                     PJ_ETOOMANY); 
    417419 
     
    832834} 
    833835 
    834  
     836/* 
     837 * Increment the event subscription's group lock. 
     838 */ 
     839PJ_DEF(pj_status_t) pjsip_evsub_add_ref(pjsip_evsub *sub) 
     840{ 
     841    return pj_grp_lock_add_ref(sub->grp_lock); 
     842} 
     843 
     844/* 
     845 * Decrement the event subscription's group lock. 
     846 */ 
     847PJ_DEF(pj_status_t) pjsip_evsub_dec_ref(pjsip_evsub *sub) 
     848{ 
     849    return pj_grp_lock_dec_ref(sub->grp_lock); 
     850} 
    835851 
    836852/* 
Note: See TracChangeset for help on using the changeset viewer.