]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Add deprecated attribute to obsolete functions
authorTakashi Iwai <tiwai@suse.de>
Fri, 21 Dec 2007 14:25:47 +0000 (15:25 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Dec 2007 14:25:47 +0000 (15:25 +0100)
Added __attribute__((deprecated)) to declarations of obsolete functions.

include/pcm.h

index 268a902e889330b827feeb4580860e58369789b4..f72b39cbcea845d0589d864ef47cabaa00d8d960 100644 (file)
@@ -1097,12 +1097,12 @@ int snd_spcm_init_get_params(snd_pcm_t *pcm,
  */
 
 /* Deprecated functions, for compatibility */
-const char *snd_pcm_start_mode_name(snd_pcm_start_t mode);
-const char *snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode);
-int snd_pcm_sw_params_set_start_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_start_t val);
-snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t *params);
-int snd_pcm_sw_params_set_xrun_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_xrun_t val);
-snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t *params);
+const char *snd_pcm_start_mode_name(snd_pcm_start_t mode) __attribute__((deprecated));
+const char *snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode) __attribute__((deprecated));
+int snd_pcm_sw_params_set_start_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_start_t val) __attribute__((deprecated));
+snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t *params) __attribute__((deprecated));
+int snd_pcm_sw_params_set_xrun_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_xrun_t val) __attribute__((deprecated));
+snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t *params) __attribute__((deprecated));
 
 /** \} */