Added more informative comments to open mode flags

This commit is contained in:
Jaroslav Kysela 2002-01-28 18:11:45 +00:00
parent dd68c91cbc
commit d57853a90a
6 changed files with 14 additions and 14 deletions

View file

@ -171,10 +171,10 @@ typedef enum _snd_ctl_type {
SND_CTL_TYPE_INET SND_CTL_TYPE_INET
} snd_ctl_type_t; } snd_ctl_type_t;
/** Non blocking mode \hideinitializer */ /** Non blocking mode (flag for open mode) \hideinitializer */
#define SND_CTL_NONBLOCK 0x0001 #define SND_CTL_NONBLOCK 0x0001
/** Async notification \hideinitializer */ /** Async notification (flag for open mode) \hideinitializer */
#define SND_CTL_ASYNC 0x0002 #define SND_CTL_ASYNC 0x0002
/** CTL handle */ /** CTL handle */

View file

@ -62,7 +62,7 @@ typedef enum _snd_hwdep_iface {
#define SND_HWDEP_OPEN_WRITE (O_WRONLY) #define SND_HWDEP_OPEN_WRITE (O_WRONLY)
/** open for reading and writing */ /** open for reading and writing */
#define SND_HWDEP_OPEN_DUPLEX (O_RDWR) #define SND_HWDEP_OPEN_DUPLEX (O_RDWR)
/** flag: open in nonblock mode */ /** open mode flag: open in nonblock mode */
#define SND_HWDEP_OPEN_NONBLOCK (O_NONBLOCK) #define SND_HWDEP_OPEN_NONBLOCK (O_NONBLOCK)
/** HwDep handle type */ /** HwDep handle type */

View file

@ -267,9 +267,9 @@ typedef long snd_pcm_sframes_t;
/** Timestamp */ /** Timestamp */
typedef struct timeval snd_timestamp_t; typedef struct timeval snd_timestamp_t;
/** Non blocking mode \hideinitializer */ /** Non blocking mode (flag for open mode) \hideinitializer */
#define SND_PCM_NONBLOCK 0x0001 #define SND_PCM_NONBLOCK 0x0001
/** Async notification \hideinitializer */ /** Async notification (flag for open mode) \hideinitializer */
#define SND_PCM_ASYNC 0x0002 #define SND_PCM_ASYNC 0x0002
/** PCM handle */ /** PCM handle */

View file

@ -57,12 +57,12 @@ typedef enum _snd_rawmidi_stream {
SND_RAWMIDI_STREAM_LAST = SND_RAWMIDI_STREAM_INPUT, SND_RAWMIDI_STREAM_LAST = SND_RAWMIDI_STREAM_INPUT,
} snd_rawmidi_stream_t; } snd_rawmidi_stream_t;
/** Append \hideinitializer */ /** Append (flag to open mode) \hideinitializer */
#define SND_RAWMIDI_APPEND 1 #define SND_RAWMIDI_APPEND 0x0001
/** Non blocking mode \hideinitializer */ /** Non blocking mode (flag to open mode) \hideinitializer */
#define SND_RAWMIDI_NONBLOCK 2 #define SND_RAWMIDI_NONBLOCK 0x0002
/** Write sync mode \hideinitializer */ /** Write sync mode (Flag to open mode) \hideinitializer */
#define SND_RAWMIDI_SYNC 4 #define SND_RAWMIDI_SYNC 0x0004
/** RawMidi handle */ /** RawMidi handle */
typedef struct _snd_rawmidi snd_rawmidi_t; typedef struct _snd_rawmidi snd_rawmidi_t;

View file

@ -62,7 +62,7 @@ do {\
/** /**
* sequencer opening mode * sequencer opening mode
*/ */
#define SND_SEQ_NONBLOCK 1 /**< non-blocking mode */ #define SND_SEQ_NONBLOCK 0x0001 /**< non-blocking mode (flag to open mode) */
/** sequencer handle type */ /** sequencer handle type */
typedef enum _snd_seq_type { typedef enum _snd_seq_type {

View file

@ -81,8 +81,8 @@ typedef enum _snd_timer_slave_class {
/** global timer - RTC */ /** global timer - RTC */
#define SND_TIMER_GLOBAL_RTC 1 #define SND_TIMER_GLOBAL_RTC 1
/** timer open mode flag - nonblock */ /** timer open mode flag - nonblocking behaviour */
#define SND_TIMER_OPEN_NONBLOCK 1 #define SND_TIMER_OPEN_NONBLOCK 0x0001
/** timer handle type */ /** timer handle type */
typedef enum _snd_timer_type { typedef enum _snd_timer_type {