diff options
author | Jaroslav Kysela <perex@perex.cz> | 2001-07-11 15:48:27 +0000 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2001-07-11 15:48:27 +0000 |
commit | 3590f6ecd330349a9317fe999a619f6fadb3c7f2 (patch) | |
tree | 90fedfa8327a26020c2a8d7f31e89107cd042a62 /include/hwdep.h | |
parent | 052be891a55d3434eecd781c6dd0a7d2b146e9b0 (diff) | |
download | alsa-lib-3590f6ecd330349a9317fe999a619f6fadb3c7f2.tar.gz |
More documentation enhancements / removal of non-existent functions.
Diffstat (limited to 'include/hwdep.h')
-rw-r--r-- | include/hwdep.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/hwdep.h b/include/hwdep.h index 0983c922..67389e08 100644 --- a/include/hwdep.h +++ b/include/hwdep.h @@ -5,6 +5,12 @@ * * ****************************************************************************/ +/** + * \defgroup HwDep Hardware Dependant Interface + * The Hardware Dependant Interface. + * \{ + */ + /** HwDep information container */ typedef struct _snd_hwdep_info snd_hwdep_info_t; @@ -40,7 +46,22 @@ int snd_hwdep_ioctl(snd_hwdep_t *hwdep, unsigned int request, void * arg); ssize_t snd_hwdep_write(snd_hwdep_t *hwdep, const void *buffer, size_t size); ssize_t snd_hwdep_read(snd_hwdep_t *hwdep, void *buffer, size_t size); +size_t snd_hwdep_info_sizeof(void); +#define snd_hwdep_info_alloca(ptr) do { assert(ptr); *ptr = (snd_hwdep_info_t *) alloca(snd_hwdep_info_sizeof()); memset(*ptr, 0, snd_hwdep_info_sizeof()); } while (0) +int snd_hwdep_info_malloc(snd_hwdep_info_t **ptr); +void snd_hwdep_info_free(snd_hwdep_info_t *obj); +void snd_hwdep_info_copy(snd_hwdep_info_t *dst, const snd_hwdep_info_t *src); + +unsigned int snd_hwdep_info_get_device(const snd_hwdep_info_t *obj); +int snd_hwdep_info_get_card(const snd_hwdep_info_t *obj); +const char *snd_hwdep_info_get_id(const snd_hwdep_info_t *obj); +const char *snd_hwdep_info_get_name(const snd_hwdep_info_t *obj); +snd_hwdep_iface_t snd_hwdep_info_get_iface(const snd_hwdep_info_t *obj); +void snd_hwdep_info_set_device(snd_hwdep_info_t *obj, unsigned int val); + #ifdef __cplusplus } #endif +/** \} */ + |