Changeset 5607:9b10a70d82e4 in roaraudio for roard


Ignore:
Timestamp:
07/31/12 03:03:34 (7 years ago)
Author:
phi
Branch:
default
Message:

added clients_set_name()

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r5606 r5607  
    507507} 
    508508 
     509int clients_set_name   (int id, const char * name) { 
     510 _CHECK_CID(id); 
     511 
     512 strncpy(ROAR_CLIENT(g_clients[id])->name, name, ROAR_BUFFER_NAME-1); 
     513 ROAR_CLIENT(g_clients[id])->name[ROAR_BUFFER_NAME-1] = 0; 
     514 
     515 return 0; 
     516} 
     517 
    509518int clients_set_proto (int id, int    proto) { 
    510519 int byteorder = ROAR_BYTEORDER_UNKNOWN; 
  • roard/include/client.h

    r5591 r5607  
    123123int clients_set_uid    (int id, int    uid); 
    124124int clients_set_gid    (int id, int    gid); 
    125 int clients_set_name   (int id, char * name); 
     125int clients_set_name   (int id, const char * name); 
    126126int clients_set_proto  (int id, int    proto); 
    127127int clients_get        (int id, struct roar_client ** client); 
Note: See TracChangeset for help on using the changeset viewer.