Changeset 1304:4c024e764410 in roaraudio for include/libroar/vio_pipe.h


Ignore:
Timestamp:
03/19/09 04:49:43 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added pipe impl. working for sockets at least and a simple test prog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio_pipe.h

    r1301 r1304  
    4444#define ROAR_VIO_PIPE_TYPE_SOCKET     3 
    4545 
     46#define ROAR_VIO_PIPE_S(self,stream)  ((self->s0) == (stream) ? 0 : 1) 
     47 
    4648struct roar_vio_pipe { 
    4749 int refcount; 
     
    5254  int                  p[4]; 
    5355 } b; 
     56 struct roar_vio_calls * s0; 
    5457}; 
    5558 
    56 int roar_vio_open_pipe (struct roar_vio_calls * s1, struct roar_vio_calls * s2, int type, int flags); 
     59int roar_vio_open_pipe (struct roar_vio_calls * s0, struct roar_vio_calls * s1, int type, int flags); 
     60int roar_vio_pipe_init (struct roar_vio_calls * s,  struct roar_vio_pipe * self, int flags); 
     61 
     62ssize_t roar_vio_pipe_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
     63ssize_t roar_vio_pipe_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
     64int     roar_vio_pipe_nonblock(struct roar_vio_calls * vio, int state); 
     65int     roar_vio_pipe_sync    (struct roar_vio_calls * vio); 
     66int     roar_vio_pipe_close   (struct roar_vio_calls * vio); 
    5767 
    5868#endif 
Note: See TracChangeset for help on using the changeset viewer.