~ubuntu-branches/ubuntu/wily/oss4/wily

« back to all changes in this revision

Viewing changes to debian/include-alsa/alsa/error.h

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis, Samuel Thibault, Romain Beauxis, Sebastien NOEL
  • Date: 2011-06-14 10:06:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614100656-cx4oc7u426zn812z
Tags: 4.2-build2004-1
[ Samuel Thibault ]
* debian/control: Add liboss4-salsa2, liboss4-salsa-dev and
  liboss4-salsa-asound2 packages, equivalent to (and will replace) those from
  the oss-libsalsa package (Closes: #589127).
* debian/patches/liboss4-salsa.patch: New patch to rename libsalsa into
  liboss4-salsa to avoid conflicts in the archive for no good reason.
* debian/rules: Make in libOSSlib and libsalsa.
* debian/liboss4-salsa-dev.install, debian/liboss4-salsa2.install,
  debian/liboss4-salsa-asound2.links, debian/liboss4-salsa-dev.links:
  Install liboss4-salsa libraries like was done in the oss-libsalsa package.
* include-alsa: Add a copy of ALSA 1.0.5 headers: Cf ALSA_1.0.* symbols in
  libsalsa, this is the roughly supported version.
* debian/copyright: Update for new include-alsa files.
* alsa.pc: New file for compatibility with libasound-dev.
* debian/control:
  - Add Vcs-Browser and Vcs-Svn fields.
  - Use linux-any instead of the list of Linux archs (Closes: #604679).
  - Make dkms dependency linux-any only.
* debian/patches/hurd_iot.patch: New patch to fix soundcard.h usage in
  libsalsa on hurd-i386.
* debian/patches/libsalsa_fixes.patch: New patch to fix some printf usages
  and ioctl declaration in libsalsa.
* debian/patches/no_EBADE.patch: New patch to cope with hurd-i386 not having
  EBADE.
* debian/patches/CFLAGS.patch: New patch to make oss4 take debian/rules
  CFLAGS into account.
* debian/patches/snd_asoundlib_version.patch: New patch to add
  snd_asoundlib_version().
* debian/patches/generic_srccconf.patch: New patch to fix source
  configuration on unknown archs.

[ Romain Beauxis ]
* Fixed README.Debian to only mention dkms' modules.
* Switch to dpkg-source 3.0 (quilt) format
* Added DM-Upload-Allowed: yes

[ Sebastien NOEL ]
* New upstream release (Closes: #595298, #619272).
* Fix typo in initscript (Closes: #627149).
* debian/control: adjust linux-headers dependencies (Closes: #628879).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * \file <alsa/error.h>
 
3
 * \brief Application interface library for the ALSA driver
 
4
 * \author Jaroslav Kysela <perex@suse.cz>
 
5
 * \author Abramo Bagnara <abramo@alsa-project.org>
 
6
 * \author Takashi Iwai <tiwai@suse.de>
 
7
 * \date 1998-2001
 
8
 *
 
9
 * Application interface library for the ALSA driver
 
10
 */
 
11
/*
 
12
 *   This library is free software; you can redistribute it and/or modify
 
13
 *   it under the terms of the GNU Lesser General Public License as
 
14
 *   published by the Free Software Foundation; either version 2.1 of
 
15
 *   the License, or (at your option) any later version.
 
16
 *
 
17
 *   This program is distributed in the hope that it will be useful,
 
18
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 *   GNU Lesser General Public License for more details.
 
21
 *
 
22
 *   You should have received a copy of the GNU Lesser General Public
 
23
 *   License along with this library; if not, write to the Free Software
 
24
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
25
 *
 
26
 */
 
27
 
 
28
#ifndef __ALSA_ERROR_H
 
29
#define __ALSA_ERROR_H
 
30
 
 
31
#ifdef __cplusplus
 
32
extern "C" {
 
33
#endif
 
34
 
 
35
/**
 
36
 *  \defgroup Error Error handling
 
37
 *  Error handling macros and functions.
 
38
 *  \{
 
39
 */
 
40
 
 
41
#define SND_ERROR_BEGIN                         500000                  /**< Lower boundary of sound error codes. */
 
42
#define SND_ERROR_INCOMPATIBLE_VERSION          (SND_ERROR_BEGIN+0)     /**< Kernel/library protocols are not compatible. */
 
43
#define SND_ERROR_ALISP_NIL                     (SND_ERROR_BEGIN+1)     /**< Lisp encountered an error during acall. */
 
44
 
 
45
const char *snd_strerror(int errnum);
 
46
 
 
47
/**
 
48
 * \brief Error handler callback.
 
49
 * \param file Source file name.
 
50
 * \param line Line number.
 
51
 * \param function Function name.
 
52
 * \param err Value of \c errno, or 0 if not relevant.
 
53
 * \param fmt \c printf(3) format.
 
54
 * \param ... \c printf(3) arguments.
 
55
 *
 
56
 * A function of this type is called by the ALSA library when an error occurs.
 
57
 * This function usually shows the message on the screen, and/or logs it.
 
58
 */
 
59
typedef void (*snd_lib_error_handler_t)(const char *file, int line, const char *function, int err, const char *fmt, ...) /* __attribute__ ((format (printf, 5, 6))) */;
 
60
extern snd_lib_error_handler_t snd_lib_error;
 
61
extern int snd_lib_error_set_handler(snd_lib_error_handler_t handler);
 
62
 
 
63
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 95)
 
64
#define SNDERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, __VA_ARGS__) /**< Shows a sound error message. */
 
65
#define SYSERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, __VA_ARGS__) /**< Shows a system error message (related to \c errno). */
 
66
#else
 
67
#define SNDERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, ##args) /**< Shows a sound error message. */
 
68
#define SYSERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, ##args) /**< Shows a system error message (related to \c errno). */
 
69
#endif
 
70
 
 
71
/** \} */
 
72
 
 
73
#ifdef __cplusplus
 
74
}
 
75
#endif
 
76
 
 
77
#endif /* __ALSA_ERROR_H */
 
78