Changeset 303:bd14cc2c6518 in verona for phapi/phapi.c


Ignore:
Timestamp:
Sep 13, 2011 2:42:15 PM (22 months ago)
Author:
Vadim Lebedev <vadim@…>
Branch:
default
Message:

add phlineSetusername2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phapi/phapi.c

    r302 r303  
    16561656 
    16571657 
     1658 
    16581659        if (!phIsInitialized) 
    16591660                return -PH_NOTINIT; 
     
    23462347 
    23472348} 
     2349 
     2350PHAPI_EXPORT int 
     2351phLineSetUsername2(int vlid, const char* username) 
     2352{ 
     2353        struct vline *vl; 
     2354 
     2355        if (!phIsInitialized) 
     2356                return -PH_NOTINIT; 
     2357 
     2358        vl = ph_valid_vlid(vlid); 
     2359 
     2360        if (!vl) 
     2361                return -PH_BADVLID; 
     2362 
     2363        osip_free(vl->nrusername); 
     2364        vl->nrusername = osip_strdup(username); 
     2365 
     2366        return 0; 
     2367} 
     2368 
    23482369 
    23492370 
Note: See TracChangeset for help on using the changeset viewer.