~ubuntu-branches/ubuntu/lucid/alsa-lib/lucid

« back to all changes in this revision

Viewing changes to include/conf.h

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-11-04 19:04:11 UTC
  • mfrom: (1.1.12 upstream) (2.2.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091104190411-igse8f4bzca8dq5x
Tags: 1.0.21a-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/rules:
    + Don't bail when removing include/alsa
  - debian/control: Add Vcs-Bzr URI
  - Add configuration files for bluetooth/bluez-alsa and pulseaudio
  - debian/libasound2.install: Ship smixer plugins for native and bi-arch
    packages
  - drop libcxxtools-dev build dependency, its in universe
  - debian/patches/Fix-fpe-snd_pcm_mmap_begin.patch: Handle attempts to
    divide by zero

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
/** \brief \c dlsym version for the config hook callback. */
45
45
#define SND_CONFIG_DLSYM_VERSION_HOOK           _dlsym_config_hook_001
46
46
 
47
 
/** Configuration node type. */
 
47
/** \brief Configuration node type. */
48
48
typedef enum _snd_config_type {
49
49
        /** Integer number. */
50
50
        SND_CONFIG_TYPE_INTEGER,
51
 
        /** 64 bit Integer number. */
 
51
        /** 64-bit integer number. */
52
52
        SND_CONFIG_TYPE_INTEGER64,
53
53
        /** Real number. */
54
54
        SND_CONFIG_TYPE_REAL,
154
154
 
155
155
/**
156
156
 * \brief Helper macro to iterate over the children of a compound node.
157
 
 * \param pos Iterator variable for the current node.
158
 
 * \param next Iterator variable for the next node.
159
 
 * \param node Handle to the compound configuration node to iterate over.
160
 
 *
161
 
 * This macro is designed to permit the removal of the current node.
 
157
 * \param[in,out] pos Iterator variable for the current node.
 
158
 * \param[in,out] next Temporary iterator variable for the next node.
 
159
 * \param[in] node Handle to the compound configuration node to iterate over.
 
160
 *
 
161
 * Use this macro like a \c for statement, e.g.:
 
162
 * \code
 
163
 * snd_config_iterator_t pos, next;
 
164
 * snd_config_for_each(pos, next, node) {
 
165
 *     snd_config_t *entry = snd_config_iterator_entry(pos);
 
166
 *     ...
 
167
 * }
 
168
 * \endcode
 
169
 *
 
170
 * This macro allows deleting or removing the current node.
162
171
 */
163
172
#define snd_config_for_each(pos, next, node) \
164
173
        for (pos = snd_config_iterator_first(node), next = snd_config_iterator_next(pos); pos != snd_config_iterator_end(node); pos = next, next = snd_config_iterator_next(pos))