summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-07-24 09:53:00 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-07-24 09:53:00 +0000
commit8914cccc8346fa3d14ce66bd420892e671914902 (patch)
treec60b1841a9d5788557b6aa75abc1aa95675161f9 /legacy/emotion/src/lib/emotion_smart.c
parent535b7783cb44cd3a580a827c7065c8a4b8d7b172 (diff)
support fetching of meta-data
SVN revision: 10999
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index f8d7552f2d..031ac790ab 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -694,6 +694,43 @@ emotion_object_spu_button_get(Evas_Object *obj)
694 return sd->spu.button; 694 return sd->spu.button;
695} 695}
696 696
697const char *
698emotion_object_meta_info_get(Evas_Object *obj, Emotion_Meta_Info meta)
699{
700 Smart_Data *sd;
701
702 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, NULL);
703 if (!sd->module) return NULL;
704 if (!sd->video) return NULL;
705 switch (meta)
706 {
707 case EMOTION_META_INFO_TRACK_TITLE:
708 return sd->module->meta_get(sd->video, META_TRACK_TITLE);
709 break;
710 case EMOTION_META_INFO_TRACK_ARTIST:
711 return sd->module->meta_get(sd->video, META_TRACK_ARTIST);
712 break;
713 case EMOTION_META_INFO_TRACK_ALBUM:
714 return sd->module->meta_get(sd->video, META_TRACK_ALBUM);
715 break;
716 case EMOTION_META_INFO_TRACK_YEAR:
717 return sd->module->meta_get(sd->video, META_TRACK_YEAR);
718 break;
719 case EMOTION_META_INFO_TRACK_GENRE:
720 return sd->module->meta_get(sd->video, META_TRACK_GENRE);
721 break;
722 case EMOTION_META_INFO_TRACK_COMMENT:
723 return sd->module->meta_get(sd->video, META_TRACK_COMMENT);
724 break;
725 case EMOTION_META_INFO_TRACK_DISC_ID:
726 return sd->module->meta_get(sd->video, META_TRACK_DISCID);
727 break;
728 default:
729 break;
730 }
731 return NULL;
732}
733
697 734
698 735
699 736