[PATCH 10/13] core: grl-media-audio functions from macros made inline
- From: Simón Pena <spenap gmail com>
- To: grilo-list gnome org
- Subject: [PATCH 10/13] core: grl-media-audio functions from macros made inline
- Date: Wed, 28 Jul 2010 23:06:26 +0200
---
src/data/grl-media-audio.c | 20 ++++++++++----------
src/data/grl-media-audio.h | 20 ++++++++++----------
2 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/src/data/grl-media-audio.c b/src/data/grl-media-audio.c
index 6568056..348d05b 100644
--- a/src/data/grl-media-audio.c
+++ b/src/data/grl-media-audio.c
@@ -86,7 +86,7 @@ grl_media_audio_new (void)
*
* Set the artist of the audio
*/
-void
+inline void
grl_media_audio_set_artist (GrlMediaAudio *data, const gchar *artist)
{
grl_data_set_string (GRL_DATA (data), GRL_METADATA_KEY_ARTIST,
@@ -100,7 +100,7 @@ grl_media_audio_set_artist (GrlMediaAudio *data, const gchar *artist)
*
* Set the album of the audio
*/
-void
+inline void
grl_media_audio_set_album (GrlMediaAudio *data, const gchar *album)
{
grl_data_set_string (GRL_DATA (data), GRL_METADATA_KEY_ALBUM,
@@ -114,7 +114,7 @@ grl_media_audio_set_album (GrlMediaAudio *data, const gchar *album)
*
* Set the genre of the audio
*/
-void
+inline void
grl_media_audio_set_genre (GrlMediaAudio *data, const gchar *genre)
{
grl_data_set_string (GRL_DATA (data), GRL_METADATA_KEY_GENRE,
@@ -128,7 +128,7 @@ grl_media_audio_set_genre (GrlMediaAudio *data, const gchar *genre)
*
* Set the lyrics of the audio
*/
-void
+inline void
grl_media_audio_set_lyrics (GrlMediaAudio *data, const gchar *lyrics)
{
grl_data_set_string (GRL_DATA (data), GRL_METADATA_KEY_LYRICS,
@@ -142,7 +142,7 @@ grl_media_audio_set_lyrics (GrlMediaAudio *data, const gchar *lyrics)
*
* Set the bitrate of the audio
*/
-void
+inline void
grl_media_audio_set_bitrate (GrlMediaAudio *data, gint bitrate)
{
grl_data_set_int (GRL_DATA (data), GRL_METADATA_KEY_BITRATE,
@@ -155,7 +155,7 @@ grl_media_audio_set_bitrate (GrlMediaAudio *data, gint bitrate)
*
* Returns: (type utf8) (transfer none): the artist of the audio
*/
-const gchar *
+inline const gchar *
grl_media_audio_get_artist (GrlMediaAudio *data)
{
return grl_data_get_string (GRL_DATA (data), GRL_METADATA_KEY_ARTIST);
@@ -167,7 +167,7 @@ grl_media_audio_get_artist (GrlMediaAudio *data)
*
* Returns: (type utf8) (transfer none): the album of the audio
*/
-const gchar *
+inline const gchar *
grl_media_audio_get_album (GrlMediaAudio *data)
{
return grl_data_get_string (GRL_DATA (data), GRL_METADATA_KEY_ALBUM);
@@ -179,7 +179,7 @@ grl_media_audio_get_album (GrlMediaAudio *data)
*
* Returns: (type utf8) (transfer none): the genre of the audio
*/
-const gchar *
+inline const gchar *
grl_media_audio_get_genre (GrlMediaAudio *data)
{
return grl_data_get_string (GRL_DATA (data), GRL_METADATA_KEY_GENRE);
@@ -191,7 +191,7 @@ grl_media_audio_get_genre (GrlMediaAudio *data)
*
* Returns: (type utf8) (transfer none): the lyrics of the audio
*/
-const gchar *
+inline const gchar *
grl_media_audio_get_lyrics (GrlMediaAudio *data)
{
return grl_data_get_string (GRL_DATA (data), GRL_METADATA_KEY_LYRICS);
@@ -203,7 +203,7 @@ grl_media_audio_get_lyrics (GrlMediaAudio *data)
*
* Returns: the bitrate of the audio
*/
-gint
+inline gint
grl_media_audio_get_bitrate (GrlMediaAudio *data)
{
return grl_data_get_int (GRL_DATA (data), GRL_METADATA_KEY_BITRATE);
diff --git a/src/data/grl-media-audio.h b/src/data/grl-media-audio.h
index 500e011..2c8d50d 100644
--- a/src/data/grl-media-audio.h
+++ b/src/data/grl-media-audio.h
@@ -73,25 +73,25 @@ struct _GrlMediaAudio
GrlMedia parent;
};
-void grl_media_audio_set_artist (GrlMediaAudio *data, const gchar *artist);
+extern void grl_media_audio_set_artist (GrlMediaAudio *data, const gchar *artist);
-void grl_media_audio_set_album (GrlMediaAudio *data, const gchar *album);
+extern void grl_media_audio_set_album (GrlMediaAudio *data, const gchar *album);
-void grl_media_audio_set_genre (GrlMediaAudio *data, const gchar *genre);
+extern void grl_media_audio_set_genre (GrlMediaAudio *data, const gchar *genre);
-void grl_media_audio_set_lyrics (GrlMediaAudio *data, const gchar *lyrics);
+extern void grl_media_audio_set_lyrics (GrlMediaAudio *data, const gchar *lyrics);
-void grl_media_audio_set_bitrate (GrlMediaAudio *data, gint bitrate);
+extern void grl_media_audio_set_bitrate (GrlMediaAudio *data, gint bitrate);
-const gchar *grl_media_audio_get_artist (GrlMediaAudio *data);
+extern const gchar *grl_media_audio_get_artist (GrlMediaAudio *data);
-const gchar *grl_media_audio_get_album (GrlMediaAudio *data);
+extern const gchar *grl_media_audio_get_album (GrlMediaAudio *data);
-const gchar *grl_media_audio_get_genre (GrlMediaAudio *data);
+extern const gchar *grl_media_audio_get_genre (GrlMediaAudio *data);
-const gchar *grl_media_audio_get_lyrics (GrlMediaAudio *data);
+extern const gchar *grl_media_audio_get_lyrics (GrlMediaAudio *data);
-gint grl_media_audio_get_bitrate (GrlMediaAudio *data);
+extern gint grl_media_audio_get_bitrate (GrlMediaAudio *data);
GType grl_media_audio_get_type (void) G_GNUC_CONST;
--
1.7.0.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]