Changeset 5452:bc99b9f05900 in roaraudio for roard


Ignore:
Timestamp:
03/25/12 04:09:31 (8 years ago)
Author:
phi
Branch:
default
Message:

ported internal stuff to new internal API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r5381 r5452  
    3838#ifndef ROAR_WITHOUT_DCOMP_EMUL_ESD 
    3939#ifdef ROAR_HAVE_H_ESD 
    40  {ROAR_PROTO_ESOUND, ROAR_SUBSYS_WAVEFORM, "EsounD emulation", NULL, NULL, emul_esd_check_client, NULL, NULL}, 
     40 {ROAR_PROTO_ESOUND, ROAR_SUBSYS_WAVEFORM, "EsounD emulation", NULL, NULL, NULL, emul_esd_check_client, NULL, NULL}, 
    4141#endif 
    4242#endif 
    4343#ifndef ROAR_WITHOUT_DCOMP_EMUL_RPLAY 
    44  {ROAR_PROTO_RPLAY, ROAR_SUBSYS_WAVEFORM, "RPlay emulation", NULL, NULL, emul_rplay_check_client, NULL, NULL}, 
     44 {ROAR_PROTO_RPLAY, ROAR_SUBSYS_WAVEFORM, "RPlay emulation", NULL, NULL, NULL, emul_rplay_check_client, NULL, NULL}, 
    4545#endif 
    4646#ifndef ROAR_WITHOUT_DCOMP_EMUL_GOPHER 
    47  {ROAR_PROTO_GOPHER, ROAR_SUBSYS_WAVEFORM, "The Internet Gopher Protocol", NULL, NULL, emul_gopher_check_client, NULL, emul_gopher_flushed_client}, 
     47 {ROAR_PROTO_GOPHER, ROAR_SUBSYS_WAVEFORM, "The Internet Gopher Protocol", NULL, NULL, NULL, emul_gopher_check_client, NULL, emul_gopher_flushed_client}, 
    4848#endif 
    4949 {-1, 0, NULL, NULL, NULL, NULL, NULL, NULL} 
     
    173173 cs = g_clients[id]; 
    174174 
     175 for (i = 0; g_proto[i].proto != -1; i++) { 
     176  if ( g_proto[i].proto == ROAR_CLIENT(cs)->proto ) { 
     177   if ( g_proto[i].delete_client != NULL ) { 
     178    g_proto[i].delete_client(id); 
     179   } 
     180  } 
     181 } 
     182 
    175183 if ( cs->waits != NULL ) { 
    176184  for (i = 0; cs->waits[i] != NULL; i++) 
     
    205213 if ( cs->outbuf != NULL ) 
    206214  roar_buffer_free(cs->outbuf); 
     215 
     216 if ( cs->protoinst != NULL ) 
     217  roar_mm_free(cs->protoinst); 
    207218 
    208219 roar_mm_free(cs); 
Note: See TracChangeset for help on using the changeset viewer.