[PATCH 11/13] core: grl-media-image functions from macros made inline



---
 src/data/grl-media-image.c |    8 ++++----
 src/data/grl-media-image.h |    8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/data/grl-media-image.c b/src/data/grl-media-image.c
index 9881bde..e92cff6 100644
--- a/src/data/grl-media-image.c
+++ b/src/data/grl-media-image.c
@@ -103,7 +103,7 @@ grl_media_image_set_size (GrlMediaImage *image,
  *
  * Set the width of the image
  */
-void
+inline void
 grl_media_image_set_width (GrlMediaImage *data, gint width)
 {
   grl_data_set_int (GRL_DATA (data),
@@ -118,7 +118,7 @@ grl_media_image_set_width (GrlMediaImage *data, gint width)
  *
  * Set the height of the image
  */
-void
+inline void
 grl_media_image_set_height (GrlMediaImage *data, gint height)
 {
   grl_data_set_int (GRL_DATA (data),
@@ -132,7 +132,7 @@ grl_media_image_set_height (GrlMediaImage *data, gint height)
  *
  * Return: the width of the image
  */
-gint
+inline gint
 grl_media_image_get_width (GrlMediaImage *data)
 {
   return grl_data_get_int (GRL_DATA (data), GRL_METADATA_KEY_WIDTH);
@@ -144,7 +144,7 @@ grl_media_image_get_width (GrlMediaImage *data)
  *
  * Return: the height of the image
  */
-gint
+inline gint
 grl_media_image_get_height (GrlMediaImage *data)
 {
   return grl_data_get_int (GRL_DATA (data), GRL_METADATA_KEY_HEIGHT);
diff --git a/src/data/grl-media-image.h b/src/data/grl-media-image.h
index 5e990f4..b9a5f93 100644
--- a/src/data/grl-media-image.h
+++ b/src/data/grl-media-image.h
@@ -73,13 +73,13 @@ struct _GrlMediaImage
   GrlMedia parent;
 };
 
-void grl_media_image_set_width (GrlMediaImage *data, gint width);
+extern void grl_media_image_set_width (GrlMediaImage *data, gint width);
 
-void grl_media_image_set_height (GrlMediaImage *data, gint height);
+extern void grl_media_image_set_height (GrlMediaImage *data, gint height);
 
-gint grl_media_image_get_width (GrlMediaImage *data);
+extern gint grl_media_image_get_width (GrlMediaImage *data);
 
-gint grl_media_image_get_height (GrlMediaImage *data);
+extern gint grl_media_image_get_height (GrlMediaImage *data);
 
 GType grl_media_image_get_type (void) G_GNUC_CONST;
 GrlMedia *grl_media_image_new (void);
-- 
1.7.0.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]