Added the support for the hardware depedent interface.

This commit is contained in:
Jaroslav Kysela 2000-01-10 10:07:53 +00:00
parent c569de6883
commit a6aee7bee0
6 changed files with 186 additions and 19 deletions

30
include/hwdep.h Normal file
View file

@ -0,0 +1,30 @@
/****************************************************************************
* *
* hwdep.h *
* Hardware depedent interface *
* *
****************************************************************************/
#define SND_HWDEP_OPEN_READ (O_RDONLY)
#define SND_HWDEP_OPEN_WRITE (O_WRONLY)
#define SND_HWDEP_OPEN_DUPLEX (O_RDWR)
#define SND_HWDEP_OPEN_NONBLOCK (O_NONBLOCK)
#ifdef __cplusplus
extern "C" {
#endif
typedef struct snd_hwdep snd_hwdep_t;
int snd_hwdep_open(snd_hwdep_t **handle, int card, int device, int mode);
int snd_hwdep_close(snd_hwdep_t *handle);
int snd_hwdep_file_descriptor(snd_hwdep_t *handle);
int snd_hwdep_block_mode(snd_hwdep_t *handle, int enable);
int snd_hwdep_info(snd_hwdep_t *handle, snd_hwdep_info_t * info);
ssize_t snd_hwdep_write(snd_hwdep_t *handle, const void *buffer, size_t size);
ssize_t snd_hwdep_read(snd_hwdep_t *handle, void *buffer, size_t size);
#ifdef __cplusplus
}
#endif