libs: replace G_CONST_RETURN with 'const'

G_CONST_RETURN will be deprecated soon.

https://bugzilla.gnome.org/show_bug.cgi?id=652211
This commit is contained in:
Tim-Philipp Müller 2011-06-09 18:30:33 +01:00
parent cf34b9aee6
commit a93e0e4a35
3 changed files with 12 additions and 12 deletions

View file

@ -225,7 +225,7 @@ static const GstTagEntryMatch tag_matches[] = {
*
* Returns: The corresponding GStreamer tag or NULL if none exists.
*/
G_CONST_RETURN gchar *
const gchar *
gst_tag_from_id3_tag (const gchar * id3_tag)
{
int i = 0;
@ -285,7 +285,7 @@ static const GstTagEntryMatch user_tag_matches[] = {
*
* Returns: The corresponding GStreamer tag or NULL if none exists.
*/
G_CONST_RETURN gchar *
const gchar *
gst_tag_from_id3_user_tag (const gchar * type, const gchar * id3_user_tag)
{
int i = 0;
@ -317,7 +317,7 @@ gst_tag_from_id3_user_tag (const gchar * type, const gchar * id3_user_tag)
*
* Returns: The corresponding ID3v2 tag or NULL if none exists.
*/
G_CONST_RETURN gchar *
const gchar *
gst_tag_to_id3_tag (const gchar * gst_tag)
{
int i = 0;
@ -423,7 +423,7 @@ gst_tag_id3_genre_count (void)
*
* Returns: the genre or NULL if no genre is associated with that ID.
*/
G_CONST_RETURN gchar *
const gchar *
gst_tag_id3_genre_get (const guint id)
{
if (id >= G_N_ELEMENTS (genres))

View file

@ -109,7 +109,7 @@ static const GstTagEntryMatch tag_matches[] = {
*
* Returns: The corresponding GStreamer tag or NULL if none exists.
*/
G_CONST_RETURN gchar *
const gchar *
gst_tag_from_vorbis_tag (const gchar * vorbis_tag)
{
int i = 0;
@ -138,7 +138,7 @@ gst_tag_from_vorbis_tag (const gchar * vorbis_tag)
*
* Returns: The corresponding vorbiscomment tag or NULL if none exists.
*/
G_CONST_RETURN gchar *
const gchar *
gst_tag_to_vorbis_tag (const gchar * gst_tag)
{
int i = 0;

View file

@ -444,8 +444,8 @@ GType gst_tag_image_type_get_type (void);
/* functions for vorbis comment manipulation */
G_CONST_RETURN gchar * gst_tag_from_vorbis_tag (const gchar * vorbis_tag);
G_CONST_RETURN gchar * gst_tag_to_vorbis_tag (const gchar * gst_tag);
const gchar * gst_tag_from_vorbis_tag (const gchar * vorbis_tag);
const gchar * gst_tag_to_vorbis_tag (const gchar * gst_tag);
void gst_vorbis_tag_add (GstTagList * list,
const gchar * tag,
const gchar * value);
@ -466,13 +466,13 @@ GstBuffer * gst_tag_list_to_vorbiscomment_buffer (const GstTagLis
/* functions for ID3 tag manipulation */
guint gst_tag_id3_genre_count (void);
G_CONST_RETURN gchar * gst_tag_id3_genre_get (const guint id);
const gchar * gst_tag_id3_genre_get (const guint id);
GstTagList * gst_tag_list_new_from_id3v1 (const guint8 * data);
G_CONST_RETURN gchar * gst_tag_from_id3_tag (const gchar * id3_tag);
G_CONST_RETURN gchar * gst_tag_from_id3_user_tag (const gchar * type,
const gchar * gst_tag_from_id3_tag (const gchar * id3_tag);
const gchar * gst_tag_from_id3_user_tag (const gchar * type,
const gchar * id3_user_tag);
G_CONST_RETURN gchar * gst_tag_to_id3_tag (const gchar * gst_tag);
const gchar * gst_tag_to_id3_tag (const gchar * gst_tag);
gboolean gst_tag_list_add_id3_image (GstTagList * tag_list,
const guint8 * image_data,