Changeset 5278:b3e0dd3f3141 in roaraudio


Ignore:
Timestamp:
11/21/11 00:42:20 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

last parts of merging _nonblock into _ctl and fixed sizeof(cmd) of _ctls

Files:
57 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio.h

    r5276 r5278  
    4343// sys io: 
    4444 
     45typedef int32_t       roar_vio_ctl_t; 
     46typedef int_least64_t roar_off_t; 
     47 
    4548struct roar_vio_calls { 
    46  void * inst; 
    47 /* 
    48  ssize_t (*read) (int fd, void *buf, size_t count, void * inst); 
    49  ssize_t (*write)(int fd, void *buf, size_t count, void * inst); 
    50  off_t   (*lseek)(int fildes, off_t offset, int whence, void * inst); 
    51 */ 
    52  ssize_t (*read    )(struct roar_vio_calls * vio, void *buf, size_t count); 
    53  ssize_t (*write   )(struct roar_vio_calls * vio, void *buf, size_t count); 
    54  off_t   (*lseek   )(struct roar_vio_calls * vio, off_t offset, int whence); 
    55 // int     (*nonblock)(struct roar_vio_calls * vio, int state); 
    56  int     (*sync    )(struct roar_vio_calls * vio); 
    57  int     (*ctl     )(struct roar_vio_calls * vio, int cmd, void * data); 
    58  int     (*close   )(struct roar_vio_calls * vio); 
    59  uint32_t flags; 
    60  size_t   refc; 
     49 size_t           refc; 
     50 uint32_t         flags; 
     51 void            *inst; 
     52 ssize_t        (*read    )(struct roar_vio_calls * vio, void *buf, size_t count); 
     53 ssize_t        (*write   )(struct roar_vio_calls * vio, void *buf, size_t count); 
     54 roar_off_t     (*lseek   )(struct roar_vio_calls * vio, roar_off_t offset, int whence); 
     55 int            (*sync    )(struct roar_vio_calls * vio); 
     56 int            (*ctl     )(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
     57 int            (*close   )(struct roar_vio_calls * vio); 
    6158}; 
    6259 
     
    7269ssize_t roar_vio_read    (struct roar_vio_calls * vio, void *buf, size_t count) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
    7370ssize_t roar_vio_write   (struct roar_vio_calls * vio, void *buf, size_t count) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
    74 off_t   roar_vio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
     71roar_off_t   roar_vio_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
    7572int     roar_vio_nonblock(struct roar_vio_calls * vio, int state) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL_ALL; 
    7673int     roar_vio_sync    (struct roar_vio_calls * vio) _LIBROAR_ATTR_NONNULL_ALL; 
    77 int     roar_vio_ctl     (struct roar_vio_calls * vio, int cmd, void * data) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL(1); 
     74int     roar_vio_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_NONNULL(1); 
    7875int     roar_vio_close   (struct roar_vio_calls * vio) _LIBROAR_ATTR_NONNULL_ALL; 
    7976 
     
    103100ssize_t roar_vio_basic_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    104101ssize_t roar_vio_basic_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    105 off_t   roar_vio_basic_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
     102roar_off_t   roar_vio_basic_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    106103int     roar_vio_basic_sync    (struct roar_vio_calls * vio); 
    107 int     roar_vio_basic_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     104int     roar_vio_basic_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    108105int     roar_vio_basic_close   (struct roar_vio_calls * vio); 
    109106 
     
    118115ssize_t roar_vio_pass_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    119116ssize_t roar_vio_pass_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    120 off_t   roar_vio_pass_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
     117roar_off_t   roar_vio_pass_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    121118int     roar_vio_pass_sync    (struct roar_vio_calls * vio); 
    122 int     roar_vio_pass_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     119int     roar_vio_pass_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    123120int     roar_vio_pass_close   (struct roar_vio_calls * vio); 
    124121 
     
    128125ssize_t roar_vio_re_read (struct roar_vio_calls * vio, void *buf, size_t count); 
    129126ssize_t roar_vio_re_write(struct roar_vio_calls * vio, void *buf, size_t count); 
    130 off_t   roar_vio_re_lseek(struct roar_vio_calls * vio, off_t offset, int whence); 
     127roar_off_t   roar_vio_re_lseek(struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    131128 
    132129#endif 
  • include/libroar/vio_bio.h

    r4708 r5278  
    4949ssize_t roar_vio_bio_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    5050ssize_t roar_vio_bio_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    51 off_t   roar_vio_bio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    52 int     roar_vio_bio_nonblock(struct roar_vio_calls * vio, int state); 
     51roar_off_t   roar_vio_bio_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    5352int     roar_vio_bio_sync    (struct roar_vio_calls * vio); 
    5453int     roar_vio_bio_close   (struct roar_vio_calls * vio); 
  • include/libroar/vio_buffer.h

    r4708 r5278  
    5858ssize_t roar_vio_buffer_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    5959ssize_t roar_vio_buffer_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    60 off_t   roar_vio_buffer_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    61 int     roar_vio_buffer_nonblock(struct roar_vio_calls * vio, int state); 
     60roar_off_t   roar_vio_buffer_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    6261int     roar_vio_buffer_sync    (struct roar_vio_calls * vio); 
    63 int     roar_vio_buffer_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     62int     roar_vio_buffer_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    6463int     roar_vio_buffer_close   (struct roar_vio_calls * vio); 
    6564 
  • include/libroar/vio_buffer_store.h

    r4708 r5278  
    4646ssize_t roar_vio_buffer_store_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    4747ssize_t roar_vio_buffer_store_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    48 off_t   roar_vio_buffer_store_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    49 int     roar_vio_buffer_store_nonblock(struct roar_vio_calls * vio, int state); 
     48roar_off_t   roar_vio_buffer_store_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    5049int     roar_vio_buffer_store_sync    (struct roar_vio_calls * vio); 
    51 int     roar_vio_buffer_store_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     50int     roar_vio_buffer_store_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    5251int     roar_vio_buffer_store_close   (struct roar_vio_calls * vio); 
    5352 
  • include/libroar/vio_cmd.h

    r4708 r5278  
    9696ssize_t roar_vio_cmd_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    9797ssize_t roar_vio_cmd_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    98 int     roar_vio_cmd_nonblock(struct roar_vio_calls * vio, int state); 
    9998int     roar_vio_cmd_sync    (struct roar_vio_calls * vio); 
    100 int     roar_vio_cmd_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
    101  
    102 /* 
    103 // pass 
    104 int     roar_vio_open_pass    (struct roar_vio_calls * calls, struct roar_vio_calls * dst); 
    105 ssize_t roar_vio_pass_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    106 ssize_t roar_vio_pass_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    107 off_t   roar_vio_pass_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    108 int     roar_vio_pass_nonblock(struct roar_vio_calls * vio, int state); 
    109 int     roar_vio_pass_sync    (struct roar_vio_calls * vio); 
    110 int     roar_vio_pass_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
    111 int     roar_vio_pass_close   (struct roar_vio_calls * vio); 
    112 */ 
     99int     roar_vio_cmd_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    113100 
    114101// MISC: 
  • include/libroar/vio_jumbo.h

    r4708 r5278  
    4949ssize_t roar_vio_jumbo_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    5050ssize_t roar_vio_jumbo_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    51 off_t   roar_vio_jumbo_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    52 int     roar_vio_jumbo_nonblock(struct roar_vio_calls * vio, int state); 
     51roar_off_t   roar_vio_jumbo_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    5352int     roar_vio_jumbo_sync    (struct roar_vio_calls * vio); 
    54 int     roar_vio_jumbo_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     53int     roar_vio_jumbo_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    5554int     roar_vio_jumbo_close   (struct roar_vio_calls * vio); 
    5655 
  • include/libroar/vio_magic.h

    r4708 r5278  
    3939#include "libroar.h" 
    4040 
     41#if 0 
    4142struct roar_vio_magic { 
    4243 struct roar_buffer * inp; 
     
    4546 
    4647int     roar_vio_open_magic    (struct roar_vio_calls * calls, struct roar_vio_calls * dst, int * codec); 
    47 ssize_t roar_vio_magic_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    48 ssize_t roar_vio_magic_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    49 off_t   roar_vio_magic_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    50 int     roar_vio_magic_nonblock(struct roar_vio_calls * vio, int state); 
    51 int     roar_vio_magic_sync    (struct roar_vio_calls * vio); 
    52 int     roar_vio_magic_close   (struct roar_vio_calls * vio); 
     48#endif 
    5349#endif 
    5450 
  • include/libroar/vio_pipe.h

    r4708 r5278  
    6767ssize_t roar_vio_pipe_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    6868ssize_t roar_vio_pipe_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    69 int     roar_vio_pipe_nonblock(struct roar_vio_calls * vio, int state); 
    7069int     roar_vio_pipe_sync    (struct roar_vio_calls * vio); 
    71 int     roar_vio_pipe_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     70int     roar_vio_pipe_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    7271int     roar_vio_pipe_close   (struct roar_vio_calls * vio); 
    7372 
  • include/libroar/vio_proto.h

    r5254 r5278  
    6767ssize_t roar_vio_proto_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    6868ssize_t roar_vio_proto_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    69 off_t   roar_vio_proto_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    70 int     roar_vio_proto_nonblock(struct roar_vio_calls * vio, int state); 
    7169int     roar_vio_proto_sync    (struct roar_vio_calls * vio); 
    72 int     roar_vio_proto_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     70int     roar_vio_proto_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    7371int     roar_vio_proto_close   (struct roar_vio_calls * vio); 
    7472 
  • include/libroar/vio_rtp.h

    r4708 r5278  
    122122ssize_t roar_vio_rtp_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    123123ssize_t roar_vio_rtp_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    124 off_t   roar_vio_rtp_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    125 int     roar_vio_rtp_nonblock(struct roar_vio_calls * vio, int state); 
    126124int     roar_vio_rtp_sync    (struct roar_vio_calls * vio); 
    127 int     roar_vio_rtp_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     125int     roar_vio_rtp_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    128126int     roar_vio_rtp_close   (struct roar_vio_calls * vio); 
    129127 
  • include/libroar/vio_stack.h

    r4975 r5278  
    5757ssize_t roar_vio_stack_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    5858ssize_t roar_vio_stack_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    59 off_t   roar_vio_stack_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    60 int     roar_vio_stack_nonblock(struct roar_vio_calls * vio, int state); 
     59roar_off_t   roar_vio_stack_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    6160int     roar_vio_stack_sync    (struct roar_vio_calls * vio); 
    62 int     roar_vio_stack_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     61int     roar_vio_stack_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    6362int     roar_vio_stack_close   (struct roar_vio_calls * vio); 
    6463 
  • include/libroar/vio_stdio.h

    r5088 r5278  
    5959ssize_t roar_vio_stdio_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    6060ssize_t roar_vio_stdio_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    61 off_t   roar_vio_stdio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
     61roar_off_t   roar_vio_stdio_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    6262int     roar_vio_stdio_sync    (struct roar_vio_calls * vio); 
    63 int     roar_vio_stdio_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     63int     roar_vio_stdio_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    6464int     roar_vio_stdio_close   (struct roar_vio_calls * vio); 
    6565 
  • include/libroar/vio_winsock.h

    r5276 r5278  
    4343ssize_t roar_vio_winsock_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    4444int     roar_vio_winsock_sync    (struct roar_vio_calls * vio); 
    45 int     roar_vio_winsock_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     45int     roar_vio_winsock_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    4646int     roar_vio_winsock_close   (struct roar_vio_calls * vio); 
    4747#endif 
  • include/libroardsp/vio_transcode.h

    r4708 r5278  
    4141int     roar_vio_open_xcode    (struct roar_vio_calls * calls, int encoder, struct roar_audio_info * info, struct roar_vio_calls * dst); 
    4242ssize_t roar_vio_xcode_proc    (struct roar_vio_calls * vio, void *buf, size_t count); 
    43 off_t   roar_vio_xcode_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    44 int     roar_vio_xcode_nonblock(struct roar_vio_calls * vio, int state); 
    4543int     roar_vio_xcode_sync    (struct roar_vio_calls * vio); 
    46 int     roar_vio_xcode_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
    4744int     roar_vio_xcode_close   (struct roar_vio_calls * vio); 
    4845 
     
    5047ssize_t roar_vio_bixcode_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    5148ssize_t roar_vio_bixcode_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    52 off_t   roar_vio_bixcode_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    53 int     roar_vio_bixcode_nonblock(struct roar_vio_calls * vio, int state); 
    5449int     roar_vio_bixcode_sync    (struct roar_vio_calls * vio); 
    55 int     roar_vio_bixcode_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
    5650int     roar_vio_bixcode_close   (struct roar_vio_calls * vio); 
    5751 
  • libroar/vio.c

    r5276 r5278  
    5656 memset((void*)calls, 0, sizeof(struct roar_vio_calls)); 
    5757 
    58 /* 
    59  calls->read  = (ssize_t (*)(int fd, void *buf, size_t count,      void * inst))read; 
    60  calls->write = (ssize_t (*)(int fd, void *buf, size_t count,      void * inst))write; 
    61  calls->lseek = (off_t   (*)(int fildes, off_t offset, int whence, void * inst))lseek; 
    62 */ 
    63  
    6458 calls->read     = roar_vio_basic_read; 
    6559 calls->write    = roar_vio_basic_write; 
     
    155149} 
    156150 
    157 off_t   roar_vio_lseek(struct roar_vio_calls * vio, off_t offset, int whence) { 
    158  off_t ret; 
    159  
    160  ROAR_DBG("roar_vio_lseek(vio=%p, offset=%u, whence=%i) = ?", vio, (unsigned int)offset, whence); 
     151roar_off_t   roar_vio_lseek(struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
     152 roar_off_t ret; 
     153 
     154 ROAR_DBG("roar_vio_lseek(vio=%p, offset=%li, whence=%i) = ?", vio, (long int)offset, whence); 
    161155 
    162156 if ( vio == NULL ) { 
     
    210204} 
    211205 
    212 int     roar_vio_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     206int     roar_vio_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    213207 int ret; 
    214208 
     
    394388} 
    395389 
    396 off_t   roar_vio_basic_lseek(struct roar_vio_calls * vio, off_t offset, int whence) { 
     390roar_off_t   roar_vio_basic_lseek(struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    397391#ifdef _CAN_OPERATE 
    398392 return lseek(roar_vio_get_fh(vio), offset, whence); 
     
    411405} 
    412406 
    413 int     roar_vio_basic_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     407int     roar_vio_basic_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    414408#ifdef ROAR_HAVE_H_SYS_IOCTL 
    415409 struct roar_vio_sysio_ioctl * sysioctl; 
     
    715709} 
    716710 
    717 off_t   roar_vio_pass_lseek(struct roar_vio_calls * vio, off_t offset, int whence) { 
     711roar_off_t   roar_vio_pass_lseek(struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    718712 return roar_vio_lseek((struct roar_vio_calls *) vio->inst, offset, whence); 
    719713} 
     
    723717} 
    724718 
    725 int     roar_vio_pass_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     719int     roar_vio_pass_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    726720 if (vio == NULL) { 
    727721  roar_err_set(ROAR_ERROR_FAULT); 
     
    841835 
    842836// TODO: we should do a some more intelgent thing here. 
    843 off_t   roar_vio_re_lseek(struct roar_vio_calls * vio, off_t offset, int whence) { 
     837roar_off_t   roar_vio_re_lseek(struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    844838 return roar_vio_lseek((struct roar_vio_calls *) vio->inst, offset, whence); 
    845839} 
  • libroar/vio_bio.c

    r4708 r5278  
    4646 calls->write    = roar_vio_bio_write; 
    4747 calls->lseek    = roar_vio_bio_lseek; 
    48  calls->nonblock = roar_vio_bio_nonblock; 
    4948 calls->sync     = roar_vio_bio_sync; 
    5049 calls->close    = roar_vio_bio_close; 
     
    8281} 
    8382 
    84 off_t   roar_vio_bio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     83roar_off_t   roar_vio_bio_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    8584 return -1; 
    8685} 
    8786 
    88 int     roar_vio_bio_nonblock(struct roar_vio_calls * vio, int state) { 
    89  return -1; 
    90 } 
    9187int     roar_vio_bio_sync    (struct roar_vio_calls * vio) { 
    9288 return -1; 
  • libroar/vio_buffer.c

    r5276 r5278  
    146146 struct roar_vio_buffer * self = vio->inst; 
    147147 struct roar_vio_calls  * backend; 
    148  off_t dst = 0; 
     148 roar_off_t dst = 0; 
    149149 
    150150 if ( self->use_re ) { 
     
    182182 
    183183 // do the seek: 
    184  if ( roar_vio_lseek(backend, dst, SEEK_CUR) == (off_t)-1 ) 
     184 if ( roar_vio_lseek(backend, dst, SEEK_CUR) == (roar_off_t)-1 ) 
    185185  return -1; 
    186186 
     
    207207} 
    208208 
    209 off_t   roar_vio_buffer_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     209roar_off_t   roar_vio_buffer_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    210210 struct roar_vio_buffer * self = vio->inst; 
    211211 size_t newoff; 
    212  off_t  ret; 
    213  off_t  invoff; 
     212 roar_off_t  ret; 
     213 roar_off_t  invoff; 
    214214 
    215215 // in-memory seeking is only supported for SEEK_CUR: 
     
    286286 } 
    287287 
    288  if (ret != (off_t)-1) 
     288 if (ret != (roar_off_t)-1) 
    289289  self->abspos = ret; 
    290290 
     
    292292} 
    293293 
    294 int     roar_vio_buffer_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     294int     roar_vio_buffer_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    295295 struct roar_vio_buffer * self; 
    296296 
  • libroar/vio_buffer_store.c

    r5276 r5278  
    132132} 
    133133 
    134 off_t   roar_vio_buffer_store_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     134roar_off_t   roar_vio_buffer_store_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    135135 // TODO: implement support to seek forward as wide as the buffer allows us to seek. 
    136  return (off_t)-1; 
     136 return (roar_off_t)-1; 
    137137} 
    138138 
     
    141141} 
    142142 
    143 int     roar_vio_buffer_store_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     143int     roar_vio_buffer_store_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    144144 if (vio == NULL || cmd == -1) 
    145145  return -1; 
  • libroar/vio_cmd.c

    r5276 r5278  
    251251 calls->read     = roar_vio_2popen_read; 
    252252 calls->write    = roar_vio_2popen_write; 
    253  calls->nonblock = roar_vio_2popen_nonblock; 
    254253 calls->sync     = roar_vio_2popen_sync; 
    255254 calls->ctl      = roar_vio_2popen_ctl; 
     
    536535} 
    537536 
    538 int     roar_vio_cmd_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     537int     roar_vio_cmd_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    539538 struct roar_vio_cmd_state * state = (struct roar_vio_cmd_state *)vio->inst; 
    540539 char buf[1]; 
  • libroar/vio_jumbo.c

    r5276 r5278  
    120120} 
    121121 
    122 off_t   roar_vio_jumbo_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     122roar_off_t   roar_vio_jumbo_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    123123 struct roar_vio_jumbo * self = vio->inst; 
    124124 
    125125 if ( roar_vio_jumbo_sync(vio) == -1 ) 
    126   return (off_t) -1; 
     126  return (roar_off_t) -1; 
    127127 
    128128 return roar_vio_lseek(self->backend, offset, whence); 
     
    148148} 
    149149 
    150 int     roar_vio_jumbo_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     150int     roar_vio_jumbo_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    151151 struct roar_vio_jumbo * self = vio->inst; 
    152152 
  • libroar/vio_magic.c

    r4708 r5278  
    3636#include "libroar.h" 
    3737 
    38 int     roar_vio_open_magic    (struct roar_vio_calls * calls, struct roar_vio_calls * dst, int * codec); 
    39 int     roar_vio_magic_close   (struct roar_vio_calls * vio); 
     38#if 0 
    4039 
    41 ssize_t roar_vio_magic_read    (struct roar_vio_calls * vio, void *buf, size_t count) { 
     40static int     roar_vio_magic_close   (struct roar_vio_calls * vio); 
     41 
     42static ssize_t roar_vio_magic_read    (struct roar_vio_calls * vio, void *buf, size_t count) { 
    4243 struct roar_vio_magic * self = (struct roar_vio_magic *)(vio->inst); 
    4344 struct roar_buffer    * inp; 
     
    7576} 
    7677 
    77 ssize_t roar_vio_magic_write   (struct roar_vio_calls * vio, void *buf, size_t count) { 
     78static ssize_t roar_vio_magic_write   (struct roar_vio_calls * vio, void *buf, size_t count) { 
    7879 struct roar_vio_magic * self = (struct roar_vio_magic *)(vio->inst); 
    7980 void * calls; 
     
    8889} 
    8990 
    90 off_t   roar_vio_magic_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     91static roar_off_t   roar_vio_magic_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    9192 struct roar_vio_magic * self = (struct roar_vio_magic *)(vio->inst); 
    9293 void * calls; 
     
    101102} 
    102103 
    103 int     roar_vio_magic_nonblock(struct roar_vio_calls * vio, int state) { 
    104  struct roar_vio_magic * self = (struct roar_vio_magic *)(vio->inst); 
    105  void * calls; 
    106  
    107  if (self == NULL) 
    108   return -1; 
    109  
    110  if ( roar_stack_get_cur(&(self->vios), &calls) == -1 ) 
    111   return -1; 
    112  
    113  return roar_vio_nonblock((struct roar_vio_calls*)calls, state); 
    114 } 
    115  
    116 int     roar_vio_magic_sync    (struct roar_vio_calls * vio) { 
     104static int     roar_vio_magic_sync    (struct roar_vio_calls * vio) { 
    117105 struct roar_vio_magic * self = (struct roar_vio_magic *)(vio->inst); 
    118106 void * calls; 
     
    127115} 
    128116 
     117int     roar_vio_open_magic    (struct roar_vio_calls * calls, struct roar_vio_calls * dst, int * codec); 
     118 
     119#endif 
     120 
    129121//ll 
  • libroar/vio_misc.c

    r5276 r5278  
    5454} 
    5555 
    56 static off_t   roar_vio_misc_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     56static roar_off_t   roar_vio_misc_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    5757 (void)vio, (void)offset, (void)whence; 
    5858 return 0; 
     
    6464} 
    6565 
    66 static int     roar_vio_misc_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     66static int     roar_vio_misc_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    6767 struct roar_vio_misc * self = vio->inst; 
    6868 
  • libroar/vio_pipe.c

    r5276 r5278  
    195195} 
    196196 
    197 int     roar_vio_pipe_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     197int     roar_vio_pipe_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    198198 struct roar_vio_pipe * self; 
    199199 
  • libroar/vio_proto.c

    r5276 r5278  
    120120 calls->read     = roar_vio_proto_read; 
    121121 calls->write    = roar_vio_proto_write; 
    122 // calls->lseek    = roar_vio_proto_lseek; // TODO: this is currently not supported 
    123122 calls->sync     = roar_vio_proto_sync; 
    124123 calls->ctl      = roar_vio_proto_ctl; 
     
    229228} 
    230229 
    231 // TODO: this is currently not implemented as this is hard to implement with buffers: 
    232 off_t   roar_vio_proto_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    233  
    234230int     roar_vio_proto_sync    (struct roar_vio_calls * vio) { 
    235231 struct roar_vio_proto * self = vio->inst; 
     
    238234} 
    239235 
    240 int     roar_vio_proto_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     236int     roar_vio_proto_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    241237 struct roar_vio_proto * self = vio->inst; 
    242238 
  • libroar/vio_rtp.c

    r5276 r5278  
    114114 calls->read               = roar_vio_rtp_read; 
    115115 calls->write              = roar_vio_rtp_write; 
    116 // calls->lseek              = roar_vio_rtp_lseek; 
    117116 calls->sync               = roar_vio_rtp_sync; 
    118117 calls->ctl                = roar_vio_rtp_ctl; 
     
    313312} 
    314313 
    315 off_t   roar_vio_rtp_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    316  
    317314int     roar_vio_rtp_sync    (struct roar_vio_calls * vio) { 
    318315 struct roar_rtp_inst * self = vio->inst; 
     
    323320} 
    324321 
    325 int     roar_vio_rtp_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     322int     roar_vio_rtp_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    326323 struct roar_rtp_inst * self = vio->inst; 
    327324 struct roar_stream          * s    = NULL; 
  • libroar/vio_stack.c

    r5276 r5278  
    116116} 
    117117 
    118 int     roar_vio_stack_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     118int     roar_vio_stack_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    119119 if (vio == NULL || cmd == -1) 
    120120  return -1; 
     
    170170} 
    171171 
    172 off_t   roar_vio_stack_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     172roar_off_t   roar_vio_stack_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    173173 if ( vio == NULL ) 
    174174  return -1; 
  • libroar/vio_stdio.c

    r5270 r5278  
    131131} 
    132132 
    133 off_t   roar_vio_stdio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     133roar_off_t   roar_vio_stdio_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    134134#if defined(ROAR_HAVE_FSEEK) && defined(ROAR_HAVE_FTELL) 
    135135 if ( fseek((FILE*)(vio->inst), offset, whence) == -1 ) 
     
    138138 return ftell((FILE*)(vio->inst)); 
    139139#else 
    140  return (off_t)-1; 
     140 return (roar_off_t)-1; 
    141141#endif 
    142142} 
     
    146146} 
    147147 
    148 int     roar_vio_stdio_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     148int     roar_vio_stdio_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    149149 
    150150 if ( vio == NULL || cmd == -1 ) 
  • libroar/vio_stream.c

    r5276 r5278  
    4444} 
    4545 
    46 static off_t   _vio_stream_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     46static roar_off_t   _vio_stream_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    4747 return roar_vio_lseek(roar_get_connection_vio2(vio->inst), offset, whence); 
    4848} 
     
    5050 return roar_vio_sync(roar_get_connection_vio2(vio->inst)); 
    5151} 
    52 static int     _vio_stream_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     52static int     _vio_stream_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    5353 if (vio == NULL) { 
    5454  roar_err_set(ROAR_ERROR_FAULT); 
  • libroar/vio_string.c

    r4708 r5278  
    6767 char    cur; 
    6868 char    buf[1024]; 
    69  off_t   offs; 
     69 roar_off_t   offs; 
    7070 char  * eol; 
    7171 
     
    7979 size -= 1; 
    8080 
    81  if ( (offs = roar_vio_lseek(vio, 0, SEEK_CUR)) == (off_t)-1 ) { 
     81 if ( (offs = roar_vio_lseek(vio, 0, SEEK_CUR)) == (roar_off_t)-1 ) { 
    8282  // need to use the one byte at a time methode 
    8383  while ( have < size ) { 
  • libroar/vio_winsock.c

    r5276 r5278  
    4949} 
    5050 
    51 int     roar_vio_winsock_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     51int     roar_vio_winsock_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    5252 int tmp; 
    5353 int s_r = 0, s_w = 0; 
  • libroar/vio_zlib.c

    r5276 r5278  
    429429} 
    430430 
    431 static off_t   roar_vio_zlib_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     431static roar_off_t   roar_vio_zlib_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    432432 (void)vio, (void)offset, (void)whence; 
    433433 roar_err_set(ROAR_ERROR_NOSYS); 
    434  return (off_t)-1; 
     434 return (roar_off_t)-1; 
    435435} 
    436436 
     
    447447} 
    448448 
    449 static int     roar_vio_zlib_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     449static int     roar_vio_zlib_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    450450 struct roar_vio_gzip * self; 
    451451 
  • libroardsp/vio_transcode.c

    r5270 r5278  
    8080} 
    8181 
    82 off_t   roar_vio_xcode_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    83 int     roar_vio_xcode_nonblock(struct roar_vio_calls * vio, int state); 
    8482int     roar_vio_xcode_sync    (struct roar_vio_calls * vio); 
    85 int     roar_vio_xcode_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
    8683 
    8784int     roar_vio_xcode_close   (struct roar_vio_calls * vio) { 
     
    151148} 
    152149 
    153 off_t   roar_vio_bixcode_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    154 int     roar_vio_bixcode_nonblock(struct roar_vio_calls * vio, int state); 
    155150int     roar_vio_bixcode_sync    (struct roar_vio_calls * vio); 
    156 int     roar_vio_bixcode_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
    157151 
    158152int     roar_vio_bixcode_close   (struct roar_vio_calls * vio) { 
  • roard/container_framework.c

    r5276 r5278  
    197197} 
    198198 
    199 off_t   cont_fw_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
     199roar_off_t   cont_fw_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    200200 
    201201int     cont_fw_sync    (struct roar_vio_calls * vio) { 
     
    233233} 
    234234 
    235 int     cont_fw_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     235int     cont_fw_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    236236 
    237237// VIO Parent: 
     
    260260} 
    261261 
    262 off_t   cont_pvio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence) { 
     262roar_off_t   cont_pvio_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    263263 return roar_vio_lseek(&(((struct cont_fw_parent_inst*)(vio->inst))->stream.stream->vio), offset, whence); 
    264264} 
     
    268268} 
    269269 
    270 int     cont_pvio_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     270int     cont_pvio_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    271271 return roar_vio_ctl(&(((struct cont_fw_parent_inst*)(vio->inst))->stream.stream->vio), cmd, data); 
    272272} 
  • roard/driver.c

    r5276 r5278  
    317317#endif 
    318318 
    319 int  driver_dummy_ctl(struct roar_vio_calls * vio, int cmd, void * data) { 
     319int  driver_dummy_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    320320 switch (cmd) { 
    321321  case ROAR_VIO_CTL_NONBLOCK: 
  • roard/driver_alsa.c

    r5276 r5278  
    324324 */ 
    325325 
    326 int driver_alsa_ctl(struct roar_vio_calls * vio, int cmd, void * data) { 
     326int driver_alsa_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    327327 roar_alsa_t       * device    = vio->inst; 
    328328 snd_pcm_sframes_t alsa_delay; 
  • roard/driver_artsc.c

    r5276 r5278  
    156156} 
    157157 
    158 int     driver_artsc_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     158int     driver_artsc_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    159159 struct roar_artsc * self = vio->inst; 
    160160 ssize_t bps; 
  • roard/driver_dmx.c

    r5242 r5278  
    6666  return -1; 
    6767 
    68  if ( roar_vio_lseek(vio, 0, SEEK_SET) == (off_t)-1 ) 
     68 if ( roar_vio_lseek(vio, 0, SEEK_SET) == (roar_off_t)-1 ) 
    6969  return -1; 
    7070 
     
    7272} 
    7373 
    74 int driver_dmx_ctl(struct roar_vio_calls * vio, int cmd, void * data) { 
     74int driver_dmx_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    7575 
    7676 if ( vio == NULL ) 
  • roard/driver_jack.c

    r5276 r5278  
    163163} 
    164164 
    165 int     driver_jack_ctl     (struct roar_vio_calls * vio, int cmd, void * data) { 
     165int     driver_jack_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    166166 struct driver_jack * self = vio->inst; 
    167167 // function for a lot control features. 
     
    184184    *(int*)data = FH...; 
    185185*/ 
     186    roar_err_set(ROAR_ERROR_NOTSUP); 
    186187    return -1; 
    187188   break; 
     
    191192   break; 
    192193  case ROAR_VIO_CTL_NONBLOCK: 
    193  // control if read and write calls should block untill all data is read or written. 
    194  // state is in *(int*)data and could be: 
    195  //  ROAR_SOCKET_BLOCK    - Block untill the data is read or written 
    196  //  ROAR_SOCKET_NONBLOCK - Return as soon as possible 
     194    // control if read and write calls should block untill all data is read or written. 
     195    // state is in *(int*)data and could be: 
     196    //  ROAR_SOCKET_BLOCK    - Block untill the data is read or written 
     197    //  ROAR_SOCKET_NONBLOCK - Return as soon as possible 
     198    roar_err_set(ROAR_ERROR_NOTSUP); 
     199    return -1; 
    197200   break; 
    198201  case ROAR_VIO_CTL_GET_AUINFO: 
    199202  case ROAR_VIO_CTL_SET_AUINFO: 
    200203    // get or set audio info, data is a struct roar_audio_info*. 
     204    roar_err_set(ROAR_ERROR_NOTSUP); 
    201205    return -1; 
    202206   break; 
    203207  case ROAR_VIO_CTL_GET_DBLKSIZE: 
    204208  case ROAR_VIO_CTL_SET_DBLKSIZE: 
    205      // get or set block size used, data is uint_least32_t*, number of bytes. 
     209    // get or set block size used, data is uint_least32_t*, number of bytes. 
     210    roar_err_set(ROAR_ERROR_NOTSUP); 
    206211    return -1; 
    207212   break; 
    208213  case ROAR_VIO_CTL_GET_DBLOCKS: 
    209214  case ROAR_VIO_CTL_SET_DBLOCKS: 
    210      // get or set number of blocks used, data is uint_least32_t*. 
     215    // get or set number of blocks used, data is uint_least32_t*. 
     216    roar_err_set(ROAR_ERROR_NOTSUP); 
    211217    return -1; 
    212218   break; 
    213219  case ROAR_VIO_CTL_SET_SSTREAM: 
    214220    // set server stream object for this stream, data is struct roar_stream_server* 
     221    roar_err_set(ROAR_ERROR_NOTSUP); 
    215222    return -1; 
    216223   break; 
    217224  case ROAR_VIO_CTL_SET_SSTREAMID: 
    218225    // set stream ID for this stream, data is int* 
     226    roar_err_set(ROAR_ERROR_NOTSUP); 
    219227    return -1; 
    220228   break; 
    221229  case ROAR_VIO_CTL_SET_VOLUME: 
    222230    // set volume for this device, data is struct roar_mixer_settings* 
     231    roar_err_set(ROAR_ERROR_NOTSUP); 
    223232    return -1; 
    224233   break; 
     
    226235    // get delay of this stream, data is uint_least32_t*, in bytes 
    227236    // there is more about delay. please ask. 
    228     return -1; 
    229    break; 
    230   default: 
    231     return -1; 
    232    break; 
    233  } 
     237    roar_err_set(ROAR_ERROR_NOTSUP); 
     238    return -1; 
     239   break; 
     240 } 
     241 
     242 roar_err_set(ROAR_ERROR_BADRQC); 
     243 return -1; 
    234244} 
    235245 
  • roard/driver_oss.c

    r5276 r5278  
    455455} 
    456456 
    457 int driver_oss_ctl(struct roar_vio_calls * vio, int cmd, void * data) { 
     457int driver_oss_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    458458 struct driver_oss * self = vio->inst; 
    459459#ifdef SNDCTL_DSP_GETODELAY 
  • roard/driver_pulsesimple.c

    r5276 r5278  
    159159} 
    160160 
    161 int     driver_pulsesimple_ctl          (struct roar_vio_calls * vio, int cmd, void * data) { 
     161int     driver_pulsesimple_ctl          (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    162162 struct driver_pulsesimple * self = vio->inst; 
    163163 
  • roard/driver_pwmled.c

    r5276 r5278  
    122122} 
    123123 
    124 int driver_pwmled_ctl(struct roar_vio_calls * vio, int cmd, void * data) { 
     124int driver_pwmled_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    125125 struct driver_pwmled * self = vio->inst; 
    126126 
  • roard/driver_sndio.c

    r5276 r5278  
    3737 vio->sync     = driver_sndio_sync; 
    3838 vio->ctl      = driver_sndio_ctl; 
    39  vio->nonblock = driver_dummy_nonblock; 
    4039 
    4140 vio->inst     = (void*) inst; 
     
    230229#define no_data(x) x: if ( data != NULL ) return -1; 
    231230 
    232 int     driver_sndio_ctl          (struct roar_vio_calls * vio, int cmd, void * data) { 
     231int     driver_sndio_ctl          (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    233232 struct driver_sndio * self = vio->inst; 
    234233 unsigned d; 
  • roard/include/container_framework.h

    r4708 r5278  
    8282ssize_t cont_fw_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    8383ssize_t cont_fw_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    84 off_t   cont_fw_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    85 int     cont_fw_nonblock(struct roar_vio_calls * vio, int state); 
     84roar_off_t   cont_fw_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    8685int     cont_fw_sync    (struct roar_vio_calls * vio); 
    87 int     cont_fw_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     86int     cont_fw_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    8887int     cont_fw_close   (struct roar_vio_calls * vio); 
    8988 
     
    9291ssize_t cont_pvio_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    9392ssize_t cont_pvio_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    94 off_t   cont_pvio_lseek   (struct roar_vio_calls * vio, off_t offset, int whence); 
    95 int     cont_pvio_nonblock(struct roar_vio_calls * vio, int state); 
     93roar_off_t   cont_pvio_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence); 
    9694int     cont_pvio_sync    (struct roar_vio_calls * vio); 
    97 int     cont_pvio_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     95int     cont_pvio_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    9896int     cont_pvio_close   (struct roar_vio_calls * vio); 
    9997 
  • roard/include/driver.h

    r5276 r5278  
    159159#endif 
    160160 
    161 int  driver_dummy_ctl(struct roar_vio_calls * vio, int cmd, void * data); 
     161int  driver_dummy_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    162162 
    163163#endif 
  • roard/include/driver_alsa.h

    r4708 r5278  
    4141int     driver_alsa_close   (struct roar_vio_calls * vio); 
    4242int     driver_alsa_sync    (struct roar_vio_calls * vio); 
    43 int     driver_alsa_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     43int     driver_alsa_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    4444 
    4545#endif 
  • roard/include/driver_artsc.h

    r4809 r5278  
    3535ssize_t driver_artsc_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    3636int     driver_artsc_close   (struct roar_vio_calls * vio); 
    37 int     driver_artsc_nonblock(struct roar_vio_calls * vio, int state); 
    38 int     driver_artsc_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     37int     driver_artsc_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    3938 
    4039#endif 
  • roard/include/driver_dmx.h

    r4708 r5278  
    3535int driver_dmx_open_vio  (struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream); 
    3636ssize_t driver_dmx_write (struct roar_vio_calls * vio,  void *buf, size_t count); 
    37 int     driver_dmx_ctl   (struct roar_vio_calls * vio,  int cmd, void * data); 
     37int     driver_dmx_ctl   (struct roar_vio_calls * vio,  roar_vio_ctl_t cmd, void * data); 
    3838 
    3939#endif 
  • roard/include/driver_jack.h

    r4825 r5278  
    3838ssize_t driver_jack_read    (struct roar_vio_calls * vio, void *buf, size_t count); 
    3939ssize_t driver_jack_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    40 int     driver_jack_nonblock(struct roar_vio_calls * vio, int state); 
    4140int     driver_jack_sync    (struct roar_vio_calls * vio); 
    42 int     driver_jack_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
     41int     driver_jack_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    4342int     driver_jack_close   (struct roar_vio_calls * vio); 
    4443 
  • roard/include/driver_oss.h

    r5276 r5278  
    4242int driver_oss_close(DRIVER_USERDATA_T   inst); 
    4343int driver_oss_sync(struct roar_vio_calls * vio); 
    44 int driver_oss_ctl(struct roar_vio_calls * vio, int cmd, void * data); 
     44int driver_oss_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    4545 
    4646ssize_t driver_oss_write    (struct roar_vio_calls * vio, void *buf, size_t count); 
  • roard/include/driver_portaudio.h

    r4858 r5278  
    4949ssize_t driver_portaudio_write        (struct roar_vio_calls * vio, void *buf, size_t count); 
    5050int     driver_portaudio_sync         (struct roar_vio_calls * vio); 
    51 int     driver_portaudio_ctl          (struct roar_vio_calls * vio, int cmd, void * data); 
    52 int     driver_portaudio_nonblock     (struct roar_vio_calls * vio, int state); 
    5351 
    5452#endif 
  • roard/include/driver_pulsesimple.h

    r4708 r5278  
    4141ssize_t driver_pulsesimple_write        (struct roar_vio_calls * vio, void *buf, size_t count); 
    4242int     driver_pulsesimple_sync         (struct roar_vio_calls * vio); 
    43 int     driver_pulsesimple_ctl          (struct roar_vio_calls * vio, int cmd, void * data); 
     43int     driver_pulsesimple_ctl          (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    4444 
    4545 
  • roard/include/driver_pwmled.h

    r4708 r5278  
    4242int driver_pwmled_open_vio  (struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream); 
    4343ssize_t driver_pwmled_write (struct roar_vio_calls * vio,  void *buf, size_t count); 
    44 int     driver_pwmled_ctl   (struct roar_vio_calls * vio,  int cmd, void * data); 
     44int     driver_pwmled_ctl   (struct roar_vio_calls * vio,  roar_vio_ctl_t cmd, void * data); 
    4545int     driver_pwmled_close (struct roar_vio_calls * vio); 
    4646 
  • roard/include/driver_sndio.h

    r4708 r5278  
    4646ssize_t driver_sndio_write        (struct roar_vio_calls * vio, void *buf, size_t count); 
    4747int     driver_sndio_sync         (struct roar_vio_calls * vio); 
    48 int     driver_sndio_ctl          (struct roar_vio_calls * vio, int cmd, void * data); 
     48int     driver_sndio_ctl          (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data); 
    4949 
    5050 
  • roard/include/driver_sysclock.h

    r4897 r5278  
    3535int     driver_sysclock_open_vio(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream); 
    3636int     driver_sysclock_close   (struct roar_vio_calls * vio); 
    37 int     driver_sysclock_nonblock(struct roar_vio_calls * vio, int state); 
    3837ssize_t driver_sysclock_write   (struct roar_vio_calls * vio, void *buf, size_t count); 
    3938 
  • roard/include/midi.h

    r5276 r5278  
    174174// dummys: 
    175175int     midi_vio_set_dummy(int stream); 
    176 int     midi_vio_ctl(struct roar_vio_calls * vio, int cmd, void * data); 
    177 int     midi_vio_ok(struct roar_vio_calls * vio, ...); 
    178176 
    179177#endif 
  • roard/midi.c

    r5276 r5278  
    10491049// VIO: 
    10501050 
     1051static int midi_vio_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
     1052 if ( cmd == ROAR_VIO_CTL_NONBLOCK ) 
     1053  return 0; 
     1054 return -1; 
     1055} 
     1056 
     1057static int     midi_vio_ok(struct roar_vio_calls * vio, ...) { 
     1058 return 0; 
     1059} 
     1060 
    10511061int     midi_vio_set_dummy(int stream) { 
    10521062 struct roar_stream_server * ss; 
     
    10651075} 
    10661076 
    1067 int midi_vio_ctl(struct roar_vio_calls * vio, int cmd, void * data) { 
    1068  if ( cmd == ROAR_VIO_CTL_NONBLOCK ) 
    1069   return 0; 
    1070  return -1; 
    1071 } 
    1072  
    1073 int     midi_vio_ok(struct roar_vio_calls * vio, ...) { 
    1074  return 0; 
    1075 } 
    1076  
    10771077#endif 
    10781078 
  • roard/sources.c

    r5276 r5278  
    323323  } 
    324324 
    325   if ( roar_vio_lseek(vio, -len, SEEK_CUR) == (off_t)-1 ) { 
     325  if ( roar_vio_lseek(vio, -len, SEEK_CUR) == (roar_off_t)-1 ) { 
    326326   _ret(-1); 
    327327  } 
     
    418418} 
    419419 
    420 static int  sources_radionoise_ctl(struct roar_vio_calls * vio, int cmd, void * data) { 
     420static int  sources_radionoise_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 
    421421 if ( cmd == ROAR_VIO_CTL_NONBLOCK ) 
    422422  return 0; 
Note: See TracChangeset for help on using the changeset viewer.