=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/dev.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/aucat/Attic/dev.h 2008/05/23 07:15:46 1.1 +++ src/usr.bin/aucat/Attic/dev.h 2008/08/14 09:58:55 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: dev.h,v 1.1 2008/05/23 07:15:46 ratchov Exp $ */ +/* $OpenBSD: dev.h,v 1.2 2008/08/14 09:58:55 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -17,19 +17,42 @@ #ifndef DEV_H #define DEV_H -#include -#include -#include -#include +struct aproc; +struct aparams; +struct file; +struct abuf; -int dev_init(char *, struct aparams *, struct aparams *, - unsigned *, unsigned *); -void dev_done(int); -void dev_start(int); -void dev_stop(int); +extern unsigned dev_infr, dev_onfr; +extern struct aparams dev_ipar, dev_opar; +extern struct aproc *dev_mix, *dev_sub, *dev_rec, *dev_play; +extern struct file *dev_file; +void dev_fill(void); +void dev_flush(void); +void dev_init(char *, struct aparams *, struct aparams *); +void dev_start(void); +void dev_stop(void); +void dev_run(int); +void dev_done(void); +void dev_attach(char *, + struct abuf *, struct aparams *, unsigned, + struct abuf *, struct aparams *, unsigned); + +struct devops { + int (*open)(char *, struct aparams *, struct aparams *, + unsigned *, unsigned *); + void (*close)(int); + void (*start)(int); + void (*stop)(int); +}; + +extern struct devops *devops, devops_sun; + +/* + * Sun API specific functions + */ +struct audio_prinfo; int sun_infotopar(struct audio_prinfo *, struct aparams *); void sun_partoinfo(struct audio_prinfo *, struct aparams *); - #endif /* !define(DEV_H) */