Changeset 3406:d7f39ce0ab78 in roaraudio


Ignore:
Timestamp:
02/11/10 16:35:48 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added roar_pa_context_get_con()

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroarpulse/libroarpulse.h

    r3405 r3406  
    5555char * roar_pa_find_server (char * server); 
    5656 
     57struct roar_connection * roar_pa_context_get_con(pa_context * c); 
     58 
    5759pa_operation *roar_pa_operation_new(pa_operation_state_t initstate); 
    5860 
  • libroarpulse/context.c

    r3402 r3406  
    175175} 
    176176 
     177struct roar_connection * roar_pa_context_get_con(pa_context * c) { 
     178 if ( c == NULL ) 
     179  return NULL; 
     180 
     181 if ( c->state != PA_CONTEXT_READY ) 
     182  return NULL; 
     183 
     184 return &(c->con); 
     185} 
    177186 
    178187 
Note: See TracChangeset for help on using the changeset viewer.