Changeset 2588:1b7ef61d7dd2 in roaraudio


Ignore:
Timestamp:
09/08/09 18:42:58 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added roar_stream_[gs]et_dir()

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/stream.h

    r2411 r2588  
    103103int roar_stream_get_fh (struct roar_stream * s); 
    104104 
     105int roar_stream_set_dir (struct roar_stream * s, int dir); 
     106int roar_stream_get_dir (struct roar_stream * s); 
    105107 
    106108int roar_stream_exec    (struct roar_connection * con, struct roar_stream * s); 
  • libroar/stream.c

    r2338 r2588  
    158158} 
    159159 
     160int roar_stream_set_dir (struct roar_stream * s, int dir) { 
     161 if ( s == NULL ) 
     162  return -1; 
     163 
     164 s->dir = dir; 
     165 
     166 return 0; 
     167} 
     168 
     169int roar_stream_get_dir (struct roar_stream * s) { 
     170 if ( s == NULL ) 
     171  return -1; 
     172 
     173 return s->dir; 
     174} 
     175 
    160176 
    161177int roar_stream_exec    (struct roar_connection * con, struct roar_stream * s) { 
Note: See TracChangeset for help on using the changeset viewer.