[PATCH 12/13] core: grl-media-video functions from macros made inline



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

diff --git a/src/data/grl-media-video.c b/src/data/grl-media-video.c
index ec928b7..47fc127 100644
--- a/src/data/grl-media-video.c
+++ b/src/data/grl-media-video.c
@@ -88,7 +88,7 @@ grl_media_video_new (void)
  *
  * Set the width and the height of the video
  */
-void
+inline void
 grl_media_video_set_size (GrlMediaVideo *video,
                           gint width,
                           int height)
@@ -104,7 +104,7 @@ grl_media_video_set_size (GrlMediaVideo *video,
  *
  * Set the width of the video
  */
-void
+inline void
 grl_media_video_set_width (GrlMediaVideo *data, gint width)
 {
   grl_data_set_int (GRL_DATA (data),
@@ -119,7 +119,7 @@ grl_media_video_set_width (GrlMediaVideo *data, gint width)
  *
  * Set the height of the video
  */
-void
+inline void
 grl_media_video_set_height (GrlMediaVideo *data, gint height)
 {
   grl_data_set_int (GRL_DATA (data),
@@ -134,7 +134,7 @@ grl_media_video_set_height (GrlMediaVideo *data, gint height)
  *
  * Set the framerate of the video
  */
-void
+inline void
 grl_media_video_set_framerate (GrlMediaVideo *data, gfloat framerate)
 {
   grl_data_set_float (GRL_DATA (data),
@@ -148,7 +148,7 @@ grl_media_video_set_framerate (GrlMediaVideo *data, gfloat framerate)
  *
  * Returns: the width of the video
  */
-gint
+inline gint
 grl_media_video_get_width (GrlMediaVideo *data)
 {
   return grl_data_get_int (GRL_DATA (data), GRL_METADATA_KEY_WIDTH);
@@ -160,7 +160,7 @@ grl_media_video_get_width (GrlMediaVideo *data)
  *
  * Returns: the height of the video
  */
-gint
+inline gint
 grl_media_video_get_height (GrlMediaVideo *data)
 {
   return grl_data_get_int (GRL_DATA (data), GRL_METADATA_KEY_HEIGHT);
@@ -172,7 +172,7 @@ grl_media_video_get_height (GrlMediaVideo *data)
  *
  * Returns: the framerate of the video
  */
-gfloat
+inline gfloat
 grl_media_video_get_framerate (GrlMediaVideo *data)
 {
   return grl_data_get_float (GRL_DATA (data), GRL_METADATA_KEY_FRAMERATE);
diff --git a/src/data/grl-media-video.h b/src/data/grl-media-video.h
index f79cebe..2125c9d 100644
--- a/src/data/grl-media-video.h
+++ b/src/data/grl-media-video.h
@@ -79,23 +79,23 @@ struct _GrlMediaVideo
   GrlMedia parent;
 };
 
-void grl_media_video_set_width (GrlMediaVideo *data, gint width);
+extern void grl_media_video_set_width (GrlMediaVideo *data, gint width);
 
-void grl_media_video_set_height (GrlMediaVideo *data, gint height);
+extern void grl_media_video_set_height (GrlMediaVideo *data, gint height);
 
-void grl_media_video_set_framerate (GrlMediaVideo *data, gfloat framerate);
+extern void grl_media_video_set_framerate (GrlMediaVideo *data, gfloat framerate);
 
-gint grl_media_video_get_width (GrlMediaVideo *data);
+extern gint grl_media_video_get_width (GrlMediaVideo *data);
 
-gint grl_media_video_get_height (GrlMediaVideo *data);
+extern gint grl_media_video_get_height (GrlMediaVideo *data);
 
-gfloat grl_media_video_get_framerate (GrlMediaVideo *data);
+extern gfloat grl_media_video_get_framerate (GrlMediaVideo *data);
 
 GType grl_media_video_get_type (void) G_GNUC_CONST;
 
 GrlMedia *grl_media_video_new (void);
 
-void grl_media_video_set_size (GrlMediaVideo *video,
+extern void grl_media_video_set_size (GrlMediaVideo *video,
                                gint width,
                                gint height);
 
-- 
1.7.0.4



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