emotion: fix symbol issue.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 5 Nov 2011 15:54:34 +0000 (15:54 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 5 Nov 2011 15:54:34 +0000 (15:54 +0000)
NOTE: all inline function in header should be static or
they will export symbol and you don't want that.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/emotion@64765 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/generic/Emotion_Generic_Plugin.h

index ad67a32..4dd8473 100644 (file)
@@ -92,7 +92,7 @@ struct _Emotion_Generic_Video_Shared
    int frame_drop;
 };
 
-inline int
+static inline int
 emotion_generic_shm_get(const char *shmname, Emotion_Generic_Video_Shared **vs, Emotion_Generic_Video_Frame *vf)
 {
    int shmfd = -1;
@@ -133,7 +133,7 @@ emotion_generic_shm_get(const char *shmname, Emotion_Generic_Video_Shared **vs,
    return 1;
 }
 
-inline void
+static inline void
 emotion_generic_shm_free(Emotion_Generic_Video_Shared *vs)
 {
    munmap(vs, vs->size);