summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2008-09-25 23:15:21 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2008-09-25 23:15:21 +0000
commitd29b7694cb99cfcbf9598976733824bea02fa0b8 (patch)
tree624fb2973b2ea9516417d09f8dd53ad5f36fb48e /legacy/emotion/src/lib/emotion_smart.c
parent42d39725b43c3739744114d361e826c7bf014aff (diff)
emotion+visualization: export and reorder.
done: * module api changed, vis_set is not close to vis_get, vis_supported was added. * exported these properties in emotion_object. * gstreamer plugin now starts with no visualization. todo: * add xine support. * make gstreamer able to dynamically change visualization. PS: gstreamer module really needs a cleanup, losts of functions need "static" or add proper prefix, including "gst" to avoid it clash with other symbols. SVN revision: 36260
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index 848bc2ea29..f77ce76fb5 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -815,8 +815,41 @@ emotion_object_meta_info_get(Evas_Object *obj, Emotion_Meta_Info meta)
815 return NULL; 815 return NULL;
816} 816}
817 817
818EAPI void
819emotion_object_vis_set(Evas_Object *obj, Emotion_Vis visualization)
820{
821 Smart_Data *sd;
822
823 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
824 if (!sd->module) return;
825 if (!sd->video) return;
826 if (!sd->module->vis_set) return;
827 sd->module->vis_set(sd->video, visualization);
828}
829
830EAPI Emotion_Vis
831emotion_object_vis_get(Evas_Object *obj)
832{
833 Smart_Data *sd;
834
835 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, EMOTION_VIS_NONE);
836 if (!sd->module) return EMOTION_VIS_NONE;
837 if (!sd->video) return EMOTION_VIS_NONE;
838 if (!sd->module->vis_get) return EMOTION_VIS_NONE;
839 return sd->module->vis_get(sd->video);
840}
818 841
842EAPI Evas_Bool
843emotion_object_vis_supported(Evas_Object *obj, Emotion_Vis visualization)
844{
845 Smart_Data *sd;
819 846
847 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
848 if (!sd->module) return 0;
849 if (!sd->video) return 0;
850 if (!sd->module->vis_supported) return 0;
851 return sd->module->vis_supported(sd->video, visualization);
852}
820 853
821 854
822 855