~ubuntu-branches/ubuntu/vivid/oss4/vivid-proposed

« back to all changes in this revision

Viewing changes to .pc/snd_asoundlib_version.patch/lib/libsalsa/misc.c

  • Committer: Package Import Robot
  • Author(s): Sebastien NOEL
  • Date: 2012-11-19 11:47:24 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20121119114724-svu8mq7x3pk64nez
Tags: 4.2-build2007-1
* New upstream release.
* Acknowledge NMU, thanks Michael Gilbert.
* Add debian/patches/110_ld-as-needed.patch: Rearrange order of linker
  arguments to fix building with "ld --as-needed" (closes: #630737).
* Add missing dependency on dpkg-dev to oss4-dkms and oss4-source
  (closes: #687086).
* Fix typo in the changelog (closes: #628876, #675933)
* Add debian/patches/002_fix-linux-oss_native_word.patch (closes: #693657).
  Thanks to Ben Hutchings.
* Add debian/patches/003_linux-error-logging-fixes.patch (closes: #693657).
  Thanks to Ben Hutchings.
* check for /lib/modules/${kernelver}/build in addition of
  /lib/modules/${kernelver}/source (closes: #587191).
* oss4-dkms.dkms.in: fix 'CLEAN' rules (closes: #653374).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (c) 2004 by Hannu Savolainen < hannu@opensound.com>
3
 
 *
4
 
 *   This library is free software; you can redistribute it and/or modify
5
 
 *   it under the terms of the GNU Lesser General Public License version 2.1 as
6
 
 *   published by the Free Software Foundation.
7
 
 *
8
 
 *   This program is distributed in the hope that it will be useful,
9
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 *   GNU Lesser General Public License for more details.
12
 
 *
13
 
 *   You should have received a copy of the GNU Lesser General Public
14
 
 *   License along with this library; if not, write to the Free Software
15
 
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16
 
 *
17
 
 */
18
 
#include <stdio.h>
19
 
#include "local.h"
20
 
 
21
 
snd_config_t *snd_config = NULL;
22
 
 
23
 
const char *
24
 
snd_strerror (int errnum)
25
 
{
26
 
  if (errnum < 0)
27
 
    errnum = -errnum;
28
 
 
29
 
  return strerror (errnum);;
30
 
}
31
 
 
32
 
/**
33
 
 * \brief Dumps the contents of a configuration node or tree.
34
 
 * \param config Handle to the (root) configuration node.
35
 
 * \param out Output handle.
36
 
 * \return Zero if successful, otherwise a negative error code.
37
 
 */
38
 
int
39
 
snd_config_save (snd_config_t * config, snd_output_t * out)
40
 
{
41
 
  dbg_printf ("snd_config_save()\n");
42
 
 
43
 
  return 0;
44
 
}
45
 
 
46
 
/**
47
 
 * \brief Searches for a node in a configuration tree.
48
 
 * \param config Handle to the root of the configuration (sub)tree to search.
49
 
 * \param key Search key: one or more node keys, separated with dots.
50
 
 * \param result The function puts the handle to the node found at the address
51
 
 *               specified by \p result.
52
 
 * \return Zero if successful, otherwise a negative error code.
53
 
 */
54
 
int
55
 
snd_config_search (snd_config_t * config, const char *key,
56
 
                   snd_config_t ** result)
57
 
{
58
 
  dbg_printf ("snd_config_search()\n");
59
 
 
60
 
  return 0;
61
 
}
62
 
 
63
 
/**
64
 
 * \brief Updates #snd_config by rereading the global configuration files (if needed).
65
 
 * \return A non-negative value if successful, otherwise a negative error code. * \retval 0 No action is needed.
66
 
 * \retval 1 The configuration tree has been rebuilt.
67
 
 *
68
 
 * The global configuration files are specified in the environment variable
69
 
 * \c ALSA_CONFIG_PATH. If this is not set, the default value is
70
 
 * "/usr/share/alsa/alsa.conf".
71
 
 *
72
 
 * \warning If the configuration tree is reread, all string pointers and
73
 
 * configuration node handles previously obtained from this tree become invalid.
74
 
 */
75
 
int
76
 
snd_config_update (void)
77
 
{
78
 
  dbg_printf ("snd_config_update()\n");
79
 
 
80
 
  return 0;
81
 
}
82
 
 
83
 
/**
84
 
 * \brief Frees the global configuration tree in #snd_config.
85
 
 * \return Zero if successful, otherwise a negative error code.
86
 
 */
87
 
int
88
 
snd_config_update_free_global (void)
89
 
{
90
 
  dbg_printf ("snd_config_update_free_global()\n");
91
 
 
92
 
  return 0;
93
 
}
94
 
 
95
 
/**
96
 
 * \brief Sets the error handler.
97
 
 * \param handler The pointer to the new error handler function.
98
 
 *
99
 
 * This function sets a new error handler, or (if \c handler is \c NULL)
100
 
 * the default one which prints the error messages to \c stderr.
101
 
 */
102
 
int
103
 
snd_lib_error_set_handler (snd_lib_error_handler_t handler)
104
 
{
105
 
  dbg_printf ("snd_lib_error_set_handler()\n");
106
 
  return 0;
107
 
}