Changeset 3064:dc308b046282 in roaraudio


Ignore:
Timestamp:
12/27/09 23:18:03 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

new inst struct and prototypes for proto impls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio_proto.h

    r1349 r3064  
    4444#define ROAR_VIO_PROTO_P_GOPHER    2 
    4545 
     46struct roar_vio_proto { 
     47 struct roar_vio_calls * next; 
     48 struct { 
     49  struct roar_buffer * buffer; 
     50 } reader, writer; 
     51}; 
     52 
    4653int roar_vio_proto_init_def  (struct roar_vio_defaults * def, char * dstr, int proto, struct roar_vio_defaults * odef); 
    4754 
    4855int roar_vio_open_proto      (struct roar_vio_calls * calls, struct roar_vio_calls * dst, 
    4956                              char * dstr, int proto, struct roar_vio_defaults * odef); 
     57 
     58ssize_t roar_vio_proto_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
     59ssize_t roar_vio_proto_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
     60off_t   roar_vio_proto_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
     61int     roar_vio_proto_nonblock(struct roar_vio_calls * vio, int state); 
     62int     roar_vio_proto_sync    (struct roar_vio_calls * vio); 
     63int     roar_vio_proto_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     64int     roar_vio_proto_close   (struct roar_vio_calls * vio); 
    5065 
    5166int roar_vio_open_proto_http   (struct roar_vio_calls * calls, struct roar_vio_calls * dst, char * host, char * file); 
Note: See TracChangeset for help on using the changeset viewer.