]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Reverted deprecated functions and added linker warning to them
authorJaroslav Kysela <perex@perex.cz>
Mon, 23 Feb 2004 10:34:17 +0000 (10:34 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 Feb 2004 10:34:17 +0000 (10:34 +0000)
src/pcm/pcm.c

index d1333441dd10748254e44e101dffc31b0cd80134..4f0cdf67753adaa729d1ff412a1066f21936451f 100644 (file)
@@ -6085,6 +6085,21 @@ snd_pcm_sframes_t snd_pcm_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area
        return xfer > 0 ? (snd_pcm_sframes_t) xfer : err;
 }
 
+snd_pcm_uframes_t _snd_pcm_mmap_hw_ptr(snd_pcm_t *pcm)
+{
+       return *pcm->hw.ptr;
+}
+
+snd_pcm_uframes_t _snd_pcm_boundary(snd_pcm_t *pcm)
+{
+       return pcm->boundary;
+}
+
+#ifndef DOC_HIDDEN
+link_warning(_snd_pcm_mmap_hw_ptr, "Warning: _snd_pcm_mmap_hw_ptr() is deprecated, consider to not use this function");
+link_warning(_snd_pcm_boundary, "Warning: _snd_pcm_boundary() is deprecated, consider to use snd_pcm_sw_params_current()");
+#endif
+
 static const char *names[SND_PCM_HW_PARAM_LAST_INTERVAL + 1] = {
        [SND_PCM_HW_PARAM_FORMAT] = "format",
        [SND_PCM_HW_PARAM_CHANNELS] = "channels",