Changeset 4684:90275bd562b4 in roaraudio


Ignore:
Timestamp:
12/22/10 03:11:44 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added IO buffers for clients, may be used by protocols.

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r4683 r4684  
    184184 roar_nnode_free(&(ROAR_CLIENT(cs)->nnode)); 
    185185 
     186 if ( cs->inbuf != NULL ) 
     187  roar_buffer_free(cs->inbuf); 
     188 
     189 if ( cs->outbuf != NULL ) 
     190  roar_buffer_free(cs->outbuf); 
     191 
    186192 roar_mm_free(cs); 
    187193 g_clients[id] = NULL; 
  • roard/include/client.h

    r4683 r4684  
    6767 struct roar_subscriber ** waits; 
    6868 enum roard_client_acclev acclev; 
     69 // may be used by protocols working directly on big data blocks to buffer a bit: 
     70 struct roar_buffer * inbuf, * outbuf; 
    6971} * g_clients[ROAR_CLIENTS_MAX]; 
    7072 
Note: See TracChangeset for help on using the changeset viewer.