Ignore:
Timestamp:
Jun 1, 2006 12:28:44 PM (18 years ago)
Author:
bennylp
Message:

Initial work on pjsua ActiveX component

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_reg.c

    r482 r487  
    133133 * Update registration. If renew is false, then unregistration will be performed. 
    134134 */ 
    135 PJ_DECL(void) pjsua_acc_set_registration(unsigned acc_index, pj_bool_t renew) 
     135PJ_DECL(pj_status_t) pjsua_acc_set_registration(unsigned acc_index, pj_bool_t renew) 
    136136{ 
    137137    pj_status_t status = 0; 
     
    144144                pjsua_perror(THIS_FILE, "Unable to create registration",  
    145145                             status); 
    146                 return; 
     146                return PJ_EINVALIDOP; 
    147147            } 
    148148        } 
    149149        if (!pjsua.acc[acc_index].regc) 
    150             return; 
     150            return PJ_EINVALIDOP; 
    151151 
    152152        status = pjsip_regc_register(pjsua.acc[acc_index].regc, 1,  
     
    156156        if (pjsua.acc[acc_index].regc == NULL) { 
    157157            PJ_LOG(3,(THIS_FILE, "Currently not registered")); 
    158             return; 
     158            return PJ_EINVALIDOP; 
    159159        } 
    160160        status = pjsip_regc_unregister(pjsua.acc[acc_index].regc, &tdata); 
     
    171171                 (renew? "Registration" : "Unregistration"))); 
    172172    } 
     173 
     174    return status; 
    173175} 
    174176 
Note: See TracChangeset for help on using the changeset viewer.