Changeset 1140:443d39e4ba48 in roaraudio for include/libroar


Ignore:
Timestamp:
01/21/09 22:38:21 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added basic roar_vio_ctl() code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vio.h

    r1118 r1140  
    1 //auth.h: 
     1//vio.h: 
    22 
    33/* 
     
    3838#include "libroar.h" 
    3939 
     40// CTLs: 
     41 
     42// stream: 
     43#define ROAR_VIO_CTL_SET_STREAM    0x00010001 
     44#define ROAR_VIO_CTL_GET_STREAM    0x00010002 
     45#define ROAR_VIO_CTL_GET_DELAY     0x00010011 
     46 
     47// sys io: 
     48 
    4049struct roar_vio_calls { 
    4150 void * inst; 
     
    5059 int     (*nonblock)(struct roar_vio_calls * vio, int state); 
    5160 int     (*sync    )(struct roar_vio_calls * vio); 
     61 int     (*ctl     )(struct roar_vio_calls * vio, int cmd, void * data); 
    5262}; 
    5363 
     
    6474int     roar_vio_nonblock(struct roar_vio_calls * vio, int state); 
    6575int     roar_vio_sync    (struct roar_vio_calls * vio); 
     76int     roar_vio_ctl     (struct roar_vio_calls * vio, int cmd, void * data); 
    6677 
    6778 
Note: See TracChangeset for help on using the changeset viewer.