summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2010-04-01 01:33:56 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2010-04-01 01:33:56 +0000
commit4a9c82671edee823233570c95f1d9c1b4e4034fd (patch)
tree63eb57f0e6b4df3a0b86959e7cde5be5c4de493b /legacy/emotion/src/lib/emotion_smart.c
parent651070fc1d2a961d17022627a2f7eacc09a69875 (diff)
consts++
SVN revision: 47637
Diffstat (limited to 'legacy/emotion/src/lib/emotion_smart.c')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c106
1 files changed, 51 insertions, 55 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index e724f8e47e..b9fe3e924f 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -278,7 +278,7 @@ emotion_object_file_set(Evas_Object *obj, const char *file)
278} 278}
279 279
280EAPI const char * 280EAPI const char *
281emotion_object_file_get(Evas_Object *obj) 281emotion_object_file_get(const Evas_Object *obj)
282{ 282{
283 Smart_Data *sd; 283 Smart_Data *sd;
284 284
@@ -301,7 +301,7 @@ emotion_object_play_set(Evas_Object *obj, Eina_Bool play)
301} 301}
302 302
303EAPI Eina_Bool 303EAPI Eina_Bool
304emotion_object_play_get(Evas_Object *obj) 304emotion_object_play_get(const Evas_Object *obj)
305{ 305{
306 Smart_Data *sd; 306 Smart_Data *sd;
307 307
@@ -327,7 +327,7 @@ emotion_object_position_set(Evas_Object *obj, double sec)
327} 327}
328 328
329EAPI double 329EAPI double
330emotion_object_position_get(Evas_Object *obj) 330emotion_object_position_get(const Evas_Object *obj)
331{ 331{
332 Smart_Data *sd; 332 Smart_Data *sd;
333 333
@@ -340,7 +340,7 @@ emotion_object_position_get(Evas_Object *obj)
340} 340}
341 341
342EAPI Eina_Bool 342EAPI Eina_Bool
343emotion_object_seekable_get(Evas_Object *obj) 343emotion_object_seekable_get(const Evas_Object *obj)
344{ 344{
345 Smart_Data *sd; 345 Smart_Data *sd;
346 346
@@ -351,7 +351,7 @@ emotion_object_seekable_get(Evas_Object *obj)
351} 351}
352 352
353EAPI Eina_Bool 353EAPI Eina_Bool
354emotion_object_video_handled_get(Evas_Object *obj) 354emotion_object_video_handled_get(const Evas_Object *obj)
355{ 355{
356 Smart_Data *sd; 356 Smart_Data *sd;
357 357
@@ -362,7 +362,7 @@ emotion_object_video_handled_get(Evas_Object *obj)
362} 362}
363 363
364EAPI Eina_Bool 364EAPI Eina_Bool
365emotion_object_audio_handled_get(Evas_Object *obj) 365emotion_object_audio_handled_get(const Evas_Object *obj)
366{ 366{
367 Smart_Data *sd; 367 Smart_Data *sd;
368 368
@@ -373,7 +373,7 @@ emotion_object_audio_handled_get(Evas_Object *obj)
373} 373}
374 374
375EAPI double 375EAPI double
376emotion_object_play_length_get(Evas_Object *obj) 376emotion_object_play_length_get(const Evas_Object *obj)
377{ 377{
378 Smart_Data *sd; 378 Smart_Data *sd;
379 379
@@ -385,7 +385,7 @@ emotion_object_play_length_get(Evas_Object *obj)
385} 385}
386 386
387EAPI void 387EAPI void
388emotion_object_size_get(Evas_Object *obj, int *iw, int *ih) 388emotion_object_size_get(const Evas_Object *obj, int *iw, int *ih)
389{ 389{
390 Smart_Data *sd; 390 Smart_Data *sd;
391 391
@@ -405,7 +405,7 @@ emotion_object_smooth_scale_set(Evas_Object *obj, Eina_Bool smooth)
405} 405}
406 406
407EAPI Eina_Bool 407EAPI Eina_Bool
408emotion_object_smooth_scale_get(Evas_Object *obj) 408emotion_object_smooth_scale_get(const Evas_Object *obj)
409{ 409{
410 Smart_Data *sd; 410 Smart_Data *sd;
411 411
@@ -414,7 +414,7 @@ emotion_object_smooth_scale_get(Evas_Object *obj)
414} 414}
415 415
416EAPI double 416EAPI double
417emotion_object_ratio_get(Evas_Object *obj) 417emotion_object_ratio_get(const Evas_Object *obj)
418{ 418{
419 Smart_Data *sd; 419 Smart_Data *sd;
420 420
@@ -447,7 +447,7 @@ emotion_object_audio_volume_set(Evas_Object *obj, double vol)
447} 447}
448 448
449EAPI double 449EAPI double
450emotion_object_audio_volume_get(Evas_Object *obj) 450emotion_object_audio_volume_get(const Evas_Object *obj)
451{ 451{
452 Smart_Data *sd; 452 Smart_Data *sd;
453 453
@@ -469,7 +469,7 @@ emotion_object_audio_mute_set(Evas_Object *obj, Eina_Bool mute)
469} 469}
470 470
471EAPI Eina_Bool 471EAPI Eina_Bool
472emotion_object_audio_mute_get(Evas_Object *obj) 472emotion_object_audio_mute_get(const Evas_Object *obj)
473{ 473{
474 Smart_Data *sd; 474 Smart_Data *sd;
475 475
@@ -480,7 +480,7 @@ emotion_object_audio_mute_get(Evas_Object *obj)
480} 480}
481 481
482EAPI int 482EAPI int
483emotion_object_audio_channel_count(Evas_Object *obj) 483emotion_object_audio_channel_count(const Evas_Object *obj)
484{ 484{
485 Smart_Data *sd; 485 Smart_Data *sd;
486 486
@@ -491,7 +491,7 @@ emotion_object_audio_channel_count(Evas_Object *obj)
491} 491}
492 492
493EAPI const char * 493EAPI const char *
494emotion_object_audio_channel_name_get(Evas_Object *obj, int channel) 494emotion_object_audio_channel_name_get(const Evas_Object *obj, int channel)
495{ 495{
496 Smart_Data *sd; 496 Smart_Data *sd;
497 497
@@ -513,7 +513,7 @@ emotion_object_audio_channel_set(Evas_Object *obj, int channel)
513} 513}
514 514
515EAPI int 515EAPI int
516emotion_object_audio_channel_get(Evas_Object *obj) 516emotion_object_audio_channel_get(const Evas_Object *obj)
517{ 517{
518 Smart_Data *sd; 518 Smart_Data *sd;
519 519
@@ -535,7 +535,7 @@ emotion_object_video_mute_set(Evas_Object *obj, Eina_Bool mute)
535} 535}
536 536
537EAPI Eina_Bool 537EAPI Eina_Bool
538emotion_object_video_mute_get(Evas_Object *obj) 538emotion_object_video_mute_get(const Evas_Object *obj)
539{ 539{
540 Smart_Data *sd; 540 Smart_Data *sd;
541 541
@@ -546,7 +546,7 @@ emotion_object_video_mute_get(Evas_Object *obj)
546} 546}
547 547
548EAPI int 548EAPI int
549emotion_object_video_channel_count(Evas_Object *obj) 549emotion_object_video_channel_count(const Evas_Object *obj)
550{ 550{
551 Smart_Data *sd; 551 Smart_Data *sd;
552 552
@@ -557,7 +557,7 @@ emotion_object_video_channel_count(Evas_Object *obj)
557} 557}
558 558
559EAPI const char * 559EAPI const char *
560emotion_object_video_channel_name_get(Evas_Object *obj, int channel) 560emotion_object_video_channel_name_get(const Evas_Object *obj, int channel)
561{ 561{
562 Smart_Data *sd; 562 Smart_Data *sd;
563 563
@@ -579,7 +579,7 @@ emotion_object_video_channel_set(Evas_Object *obj, int channel)
579} 579}
580 580
581EAPI int 581EAPI int
582emotion_object_video_channel_get(Evas_Object *obj) 582emotion_object_video_channel_get(const Evas_Object *obj)
583{ 583{
584 Smart_Data *sd; 584 Smart_Data *sd;
585 585
@@ -601,7 +601,7 @@ emotion_object_spu_mute_set(Evas_Object *obj, Eina_Bool mute)
601} 601}
602 602
603EAPI Eina_Bool 603EAPI Eina_Bool
604emotion_object_spu_mute_get(Evas_Object *obj) 604emotion_object_spu_mute_get(const Evas_Object *obj)
605{ 605{
606 Smart_Data *sd; 606 Smart_Data *sd;
607 607
@@ -612,7 +612,7 @@ emotion_object_spu_mute_get(Evas_Object *obj)
612} 612}
613 613
614EAPI int 614EAPI int
615emotion_object_spu_channel_count(Evas_Object *obj) 615emotion_object_spu_channel_count(const Evas_Object *obj)
616{ 616{
617 Smart_Data *sd; 617 Smart_Data *sd;
618 618
@@ -623,7 +623,7 @@ emotion_object_spu_channel_count(Evas_Object *obj)
623} 623}
624 624
625EAPI const char * 625EAPI const char *
626emotion_object_spu_channel_name_get(Evas_Object *obj, int channel) 626emotion_object_spu_channel_name_get(const Evas_Object *obj, int channel)
627{ 627{
628 Smart_Data *sd; 628 Smart_Data *sd;
629 629
@@ -645,7 +645,7 @@ emotion_object_spu_channel_set(Evas_Object *obj, int channel)
645} 645}
646 646
647EAPI int 647EAPI int
648emotion_object_spu_channel_get(Evas_Object *obj) 648emotion_object_spu_channel_get(const Evas_Object *obj)
649{ 649{
650 Smart_Data *sd; 650 Smart_Data *sd;
651 651
@@ -656,7 +656,7 @@ emotion_object_spu_channel_get(Evas_Object *obj)
656} 656}
657 657
658EAPI int 658EAPI int
659emotion_object_chapter_count(Evas_Object *obj) 659emotion_object_chapter_count(const Evas_Object *obj)
660{ 660{
661 Smart_Data *sd; 661 Smart_Data *sd;
662 662
@@ -678,7 +678,7 @@ emotion_object_chapter_set(Evas_Object *obj, int chapter)
678} 678}
679 679
680EAPI int 680EAPI int
681emotion_object_chapter_get(Evas_Object *obj) 681emotion_object_chapter_get(const Evas_Object *obj)
682{ 682{
683 Smart_Data *sd; 683 Smart_Data *sd;
684 684
@@ -689,7 +689,7 @@ emotion_object_chapter_get(Evas_Object *obj)
689} 689}
690 690
691EAPI const char * 691EAPI const char *
692emotion_object_chapter_name_get(Evas_Object *obj, int chapter) 692emotion_object_chapter_name_get(const Evas_Object *obj, int chapter)
693{ 693{
694 Smart_Data *sd; 694 Smart_Data *sd;
695 695
@@ -711,7 +711,7 @@ emotion_object_play_speed_set(Evas_Object *obj, double speed)
711} 711}
712 712
713EAPI double 713EAPI double
714emotion_object_play_speed_get(Evas_Object *obj) 714emotion_object_play_speed_get(const Evas_Object *obj)
715{ 715{
716 Smart_Data *sd; 716 Smart_Data *sd;
717 717
@@ -733,7 +733,7 @@ emotion_object_eject(Evas_Object *obj)
733} 733}
734 734
735EAPI const char * 735EAPI const char *
736emotion_object_title_get(Evas_Object *obj) 736emotion_object_title_get(const Evas_Object *obj)
737{ 737{
738 Smart_Data *sd; 738 Smart_Data *sd;
739 739
@@ -742,7 +742,7 @@ emotion_object_title_get(Evas_Object *obj)
742} 742}
743 743
744EAPI const char * 744EAPI const char *
745emotion_object_progress_info_get(Evas_Object *obj) 745emotion_object_progress_info_get(const Evas_Object *obj)
746{ 746{
747 Smart_Data *sd; 747 Smart_Data *sd;
748 748
@@ -751,7 +751,7 @@ emotion_object_progress_info_get(Evas_Object *obj)
751} 751}
752 752
753EAPI double 753EAPI double
754emotion_object_progress_status_get(Evas_Object *obj) 754emotion_object_progress_status_get(const Evas_Object *obj)
755{ 755{
756 Smart_Data *sd; 756 Smart_Data *sd;
757 757
@@ -760,7 +760,7 @@ emotion_object_progress_status_get(Evas_Object *obj)
760} 760}
761 761
762EAPI const char * 762EAPI const char *
763emotion_object_ref_file_get(Evas_Object *obj) 763emotion_object_ref_file_get(const Evas_Object *obj)
764{ 764{
765 Smart_Data *sd; 765 Smart_Data *sd;
766 766
@@ -769,7 +769,7 @@ emotion_object_ref_file_get(Evas_Object *obj)
769} 769}
770 770
771EAPI int 771EAPI int
772emotion_object_ref_num_get(Evas_Object *obj) 772emotion_object_ref_num_get(const Evas_Object *obj)
773{ 773{
774 Smart_Data *sd; 774 Smart_Data *sd;
775 775
@@ -778,7 +778,7 @@ emotion_object_ref_num_get(Evas_Object *obj)
778} 778}
779 779
780EAPI int 780EAPI int
781emotion_object_spu_button_count_get(Evas_Object *obj) 781emotion_object_spu_button_count_get(const Evas_Object *obj)
782{ 782{
783 Smart_Data *sd; 783 Smart_Data *sd;
784 784
@@ -787,7 +787,7 @@ emotion_object_spu_button_count_get(Evas_Object *obj)
787} 787}
788 788
789EAPI int 789EAPI int
790emotion_object_spu_button_get(Evas_Object *obj) 790emotion_object_spu_button_get(const Evas_Object *obj)
791{ 791{
792 Smart_Data *sd; 792 Smart_Data *sd;
793 793
@@ -796,7 +796,7 @@ emotion_object_spu_button_get(Evas_Object *obj)
796} 796}
797 797
798EAPI const char * 798EAPI const char *
799emotion_object_meta_info_get(Evas_Object *obj, Emotion_Meta_Info meta) 799emotion_object_meta_info_get(const Evas_Object *obj, Emotion_Meta_Info meta)
800{ 800{
801 Smart_Data *sd; 801 Smart_Data *sd;
802 802
@@ -845,7 +845,7 @@ emotion_object_vis_set(Evas_Object *obj, Emotion_Vis visualization)
845} 845}
846 846
847EAPI Emotion_Vis 847EAPI Emotion_Vis
848emotion_object_vis_get(Evas_Object *obj) 848emotion_object_vis_get(const Evas_Object *obj)
849{ 849{
850 Smart_Data *sd; 850 Smart_Data *sd;
851 851
@@ -857,7 +857,7 @@ emotion_object_vis_get(Evas_Object *obj)
857} 857}
858 858
859EAPI Eina_Bool 859EAPI Eina_Bool
860emotion_object_vis_supported(Evas_Object *obj, Emotion_Vis visualization) 860emotion_object_vis_supported(const Evas_Object *obj, Emotion_Vis visualization)
861{ 861{
862 Smart_Data *sd; 862 Smart_Data *sd;
863 863
@@ -875,7 +875,7 @@ emotion_object_vis_supported(Evas_Object *obj, Emotion_Vis visualization)
875/*****************************/ 875/*****************************/
876 876
877EAPI void * 877EAPI void *
878_emotion_video_get(Evas_Object *obj) 878_emotion_video_get(const Evas_Object *obj)
879{ 879{
880 Smart_Data *sd; 880 Smart_Data *sd;
881 881
@@ -1250,24 +1250,20 @@ _smart_init(void)
1250 gstreamer_module_init(); 1250 gstreamer_module_init();
1251#endif 1251#endif
1252 1252
1253 static const Evas_Smart_Class sc = 1253 static Evas_Smart_Class sc =
1254 EVAS_SMART_CLASS_INIT_NAME_VERSION(E_OBJ_NAME);
1255 if (!sc.add)
1254 { 1256 {
1255 E_OBJ_NAME, 1257 sc.add = _smart_add;
1256 EVAS_SMART_CLASS_VERSION, 1258 sc.del = _smart_del;
1257 _smart_add, 1259 sc.move = _smart_move;
1258 _smart_del, 1260 sc.resize = _smart_resize;
1259 _smart_move, 1261 sc.show = _smart_show;
1260 _smart_resize, 1262 sc.hide = _smart_hide;
1261 _smart_show, 1263 sc.color_set = _smart_color_set;
1262 _smart_hide, 1264 sc.clip_set = _smart_clip_set;
1263 _smart_color_set, 1265 sc.clip_unset = _smart_clip_unset;
1264 _smart_clip_set, 1266 }
1265 _smart_clip_unset,
1266 NULL,
1267 NULL,
1268 NULL,
1269 NULL
1270 };
1271 smart = evas_smart_class_new(&sc); 1267 smart = evas_smart_class_new(&sc);
1272 } 1268 }
1273} 1269}