mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added the support for the hardware depedent interface.
This commit is contained in:
parent
c569de6883
commit
a6aee7bee0
6 changed files with 186 additions and 19 deletions
30
include/hwdep.h
Normal file
30
include/hwdep.h
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue