summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2009-06-18 08:01:23 +0000
committerCedric BAIL <cedric.bail@free.fr>2009-06-18 08:01:23 +0000
commitd331f73b5534d74509d936e118cfa13ce124f854 (patch)
tree25573c47fe498a7b61594ecce8551ef6923ddbc9 /legacy/emotion/src/lib/emotion_smart.c
parent880424986286518ce408fea31e69f380b65a9f3f (diff)
* emotion: Remove Evas_Bool.
SVN revision: 41097
Diffstat (limited to 'legacy/emotion/src/lib/emotion_smart.c')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index c0a188aaa0..9266b8dbab 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -188,7 +188,7 @@ emotion_object_module_option_set(Evas_Object *obj, const char *opt, const char *
188 } 188 }
189} 189}
190 190
191EAPI Evas_Bool 191EAPI Eina_Bool
192emotion_object_init(Evas_Object *obj, const char *module_filename) 192emotion_object_init(Evas_Object *obj, const char *module_filename)
193{ 193{
194 Smart_Data *sd; 194 Smart_Data *sd;
@@ -218,10 +218,10 @@ emotion_object_init(Evas_Object *obj, const char *module_filename)
218 { 218 {
219 if (!_emotion_module_open(module_filename, obj, 219 if (!_emotion_module_open(module_filename, obj,
220 &sd->module, &sd->video)) 220 &sd->module, &sd->video))
221 return 0; 221 return EINA_FALSE;
222 } 222 }
223 223
224 return 1; 224 return EINA_TRUE;
225} 225}
226 226
227EAPI void 227EAPI void
@@ -272,7 +272,7 @@ emotion_object_file_get(Evas_Object *obj)
272} 272}
273 273
274EAPI void 274EAPI void
275emotion_object_play_set(Evas_Object *obj, Evas_Bool play) 275emotion_object_play_set(Evas_Object *obj, Eina_Bool play)
276{ 276{
277 Smart_Data *sd; 277 Smart_Data *sd;
278 278
@@ -285,13 +285,13 @@ emotion_object_play_set(Evas_Object *obj, Evas_Bool play)
285 else sd->module->stop(sd->video); 285 else sd->module->stop(sd->video);
286} 286}
287 287
288EAPI Evas_Bool 288EAPI Eina_Bool
289emotion_object_play_get(Evas_Object *obj) 289emotion_object_play_get(Evas_Object *obj)
290{ 290{
291 Smart_Data *sd; 291 Smart_Data *sd;
292 292
293 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 293 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
294 if (!sd->video) return 0; 294 if (!sd->video) return EINA_FALSE;
295 295
296 return sd->play; 296 return sd->play;
297} 297}
@@ -324,36 +324,36 @@ emotion_object_position_get(Evas_Object *obj)
324 return sd->pos; 324 return sd->pos;
325} 325}
326 326
327EAPI Evas_Bool 327EAPI Eina_Bool
328emotion_object_seekable_get(Evas_Object *obj) 328emotion_object_seekable_get(Evas_Object *obj)
329{ 329{
330 Smart_Data *sd; 330 Smart_Data *sd;
331 331
332 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 332 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
333 if (!sd->module) return 0; 333 if (!sd->module) return EINA_FALSE;
334 if (!sd->video) return 0; 334 if (!sd->video) return EINA_FALSE;
335 return sd->module->seekable(sd->video); 335 return sd->module->seekable(sd->video);
336} 336}
337 337
338EAPI Evas_Bool 338EAPI Eina_Bool
339emotion_object_video_handled_get(Evas_Object *obj) 339emotion_object_video_handled_get(Evas_Object *obj)
340{ 340{
341 Smart_Data *sd; 341 Smart_Data *sd;
342 342
343 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 343 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
344 if (!sd->module) return 0; 344 if (!sd->module) return EINA_FALSE;
345 if (!sd->video) return 0; 345 if (!sd->video) return EINA_FALSE;
346 return sd->module->video_handled(sd->video); 346 return sd->module->video_handled(sd->video);
347} 347}
348 348
349EAPI Evas_Bool 349EAPI Eina_Bool
350emotion_object_audio_handled_get(Evas_Object *obj) 350emotion_object_audio_handled_get(Evas_Object *obj)
351{ 351{
352 Smart_Data *sd; 352 Smart_Data *sd;
353 353
354 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 354 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
355 if (!sd->module) return 0; 355 if (!sd->module) return EINA_FALSE;
356 if (!sd->video) return 0; 356 if (!sd->video) return EINA_FALSE;
357 return sd->module->audio_handled(sd->video); 357 return sd->module->audio_handled(sd->video);
358} 358}
359 359
@@ -381,7 +381,7 @@ emotion_object_size_get(Evas_Object *obj, int *iw, int *ih)
381} 381}
382 382
383EAPI void 383EAPI void
384emotion_object_smooth_scale_set(Evas_Object *obj, Evas_Bool smooth) 384emotion_object_smooth_scale_set(Evas_Object *obj, Eina_Bool smooth)
385{ 385{
386 Smart_Data *sd; 386 Smart_Data *sd;
387 387
@@ -389,7 +389,7 @@ emotion_object_smooth_scale_set(Evas_Object *obj, Evas_Bool smooth)
389 evas_object_image_smooth_scale_set(sd->obj, smooth); 389 evas_object_image_smooth_scale_set(sd->obj, smooth);
390} 390}
391 391
392EAPI Evas_Bool 392EAPI Eina_Bool
393emotion_object_smooth_scale_get(Evas_Object *obj) 393emotion_object_smooth_scale_get(Evas_Object *obj)
394{ 394{
395 Smart_Data *sd; 395 Smart_Data *sd;
@@ -443,7 +443,7 @@ emotion_object_audio_volume_get(Evas_Object *obj)
443} 443}
444 444
445EAPI void 445EAPI void
446emotion_object_audio_mute_set(Evas_Object *obj, Evas_Bool mute) 446emotion_object_audio_mute_set(Evas_Object *obj, Eina_Bool mute)
447{ 447{
448 Smart_Data *sd; 448 Smart_Data *sd;
449 449
@@ -453,14 +453,14 @@ emotion_object_audio_mute_set(Evas_Object *obj, Evas_Bool mute)
453 sd->module->audio_channel_mute_set(sd->video, mute); 453 sd->module->audio_channel_mute_set(sd->video, mute);
454} 454}
455 455
456EAPI Evas_Bool 456EAPI Eina_Bool
457emotion_object_audio_mute_get(Evas_Object *obj) 457emotion_object_audio_mute_get(Evas_Object *obj)
458{ 458{
459 Smart_Data *sd; 459 Smart_Data *sd;
460 460
461 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 461 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
462 if (!sd->module) return 0; 462 if (!sd->module) return EINA_FALSE;
463 if (!sd->video) return 0; 463 if (!sd->video) return EINA_FALSE;
464 return sd->module->audio_channel_mute_get(sd->video); 464 return sd->module->audio_channel_mute_get(sd->video);
465} 465}
466 466
@@ -509,7 +509,7 @@ emotion_object_audio_channel_get(Evas_Object *obj)
509} 509}
510 510
511EAPI void 511EAPI void
512emotion_object_video_mute_set(Evas_Object *obj, Evas_Bool mute) 512emotion_object_video_mute_set(Evas_Object *obj, Eina_Bool mute)
513{ 513{
514 Smart_Data *sd; 514 Smart_Data *sd;
515 515
@@ -519,14 +519,14 @@ emotion_object_video_mute_set(Evas_Object *obj, Evas_Bool mute)
519 sd->module->video_channel_mute_set(sd->video, mute); 519 sd->module->video_channel_mute_set(sd->video, mute);
520} 520}
521 521
522EAPI Evas_Bool 522EAPI Eina_Bool
523emotion_object_video_mute_get(Evas_Object *obj) 523emotion_object_video_mute_get(Evas_Object *obj)
524{ 524{
525 Smart_Data *sd; 525 Smart_Data *sd;
526 526
527 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 527 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
528 if (!sd->module) return 0; 528 if (!sd->module) return EINA_FALSE;
529 if (!sd->video) return 0; 529 if (!sd->video) return EINA_FALSE;
530 return sd->module->video_channel_mute_get(sd->video); 530 return sd->module->video_channel_mute_get(sd->video);
531} 531}
532 532
@@ -536,8 +536,8 @@ emotion_object_video_channel_count(Evas_Object *obj)
536 Smart_Data *sd; 536 Smart_Data *sd;
537 537
538 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 538 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
539 if (!sd->module) return 0; 539 if (!sd->module) return EINA_FALSE;
540 if (!sd->video) return 0; 540 if (!sd->video) return EINA_FALSE;
541 return sd->module->video_channel_count(sd->video); 541 return sd->module->video_channel_count(sd->video);
542} 542}
543 543
@@ -575,7 +575,7 @@ emotion_object_video_channel_get(Evas_Object *obj)
575} 575}
576 576
577EAPI void 577EAPI void
578emotion_object_spu_mute_set(Evas_Object *obj, Evas_Bool mute) 578emotion_object_spu_mute_set(Evas_Object *obj, Eina_Bool mute)
579{ 579{
580 Smart_Data *sd; 580 Smart_Data *sd;
581 581
@@ -585,14 +585,14 @@ emotion_object_spu_mute_set(Evas_Object *obj, Evas_Bool mute)
585 sd->module->spu_channel_mute_set(sd->video, mute); 585 sd->module->spu_channel_mute_set(sd->video, mute);
586} 586}
587 587
588EAPI Evas_Bool 588EAPI Eina_Bool
589emotion_object_spu_mute_get(Evas_Object *obj) 589emotion_object_spu_mute_get(Evas_Object *obj)
590{ 590{
591 Smart_Data *sd; 591 Smart_Data *sd;
592 592
593 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 593 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
594 if (!sd->module) return 0; 594 if (!sd->module) return EINA_FALSE;
595 if (!sd->video) return 0; 595 if (!sd->video) return EINA_FALSE;
596 return sd->module->spu_channel_mute_get(sd->video); 596 return sd->module->spu_channel_mute_get(sd->video);
597} 597}
598 598
@@ -841,15 +841,15 @@ emotion_object_vis_get(Evas_Object *obj)
841 return sd->module->vis_get(sd->video); 841 return sd->module->vis_get(sd->video);
842} 842}
843 843
844EAPI Evas_Bool 844EAPI Eina_Bool
845emotion_object_vis_supported(Evas_Object *obj, Emotion_Vis visualization) 845emotion_object_vis_supported(Evas_Object *obj, Emotion_Vis visualization)
846{ 846{
847 Smart_Data *sd; 847 Smart_Data *sd;
848 848
849 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 849 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
850 if (!sd->module) return 0; 850 if (!sd->module) return EINA_FALSE;
851 if (!sd->video) return 0; 851 if (!sd->video) return EINA_FALSE;
852 if (!sd->module->vis_supported) return 0; 852 if (!sd->module->vis_supported) return EINA_FALSE;
853 return sd->module->vis_supported(sd->video, visualization); 853 return sd->module->vis_supported(sd->video, visualization);
854} 854}
855 855