From 76687b2ea29963315444b8042da8a90028f2e5fa Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 15 Nov 2020 13:42:25 +0100 Subject: [PATCH] tytest: those functions must return Eina_Bool --- src/bin/tytest.h | 4 ++-- src/bin/tytest_common.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/bin/tytest.h b/src/bin/tytest.h index a60e961a..d2f6d7c2 100644 --- a/src/bin/tytest.h +++ b/src/bin/tytest.h @@ -17,13 +17,13 @@ Evas_Textgrid_Cell * tytest_textgrid_cellrow_get(Evas_Object *obj, int y); #define edje_object_color_class_get tytest_edje_object_color_class_get -int +Eina_Bool tytest_edje_object_color_class_get(Evas_Object *termio EINA_UNUSED, const char *key, int *r, int *g, int *b, int *a, int *r1 EINA_UNUSED, int *g1 EINA_UNUSED, int *b1 EINA_UNUSED, int *a1 EINA_UNUSED, int *r2 EINA_UNUSED, int *g2 EINA_UNUSED, int *b2 EINA_UNUSED, int *a2 EINA_UNUSED); #define edje_object_color_class_set tytest_edje_object_color_class_set -int +Eina_Bool tytest_edje_object_color_class_set(Evas_Object *termio EINA_UNUSED, const char *key, int r, int g, int b, int a, int r1 EINA_UNUSED, int g1 EINA_UNUSED, int b1 EINA_UNUSED, int a1 EINA_UNUSED, diff --git a/src/bin/tytest_common.c b/src/bin/tytest_common.c index f2104143..d64d3570 100644 --- a/src/bin/tytest_common.c +++ b/src/bin/tytest_common.c @@ -276,7 +276,7 @@ termio_set_cursor_shape(Evas_Object *obj EINA_UNUSED, } -int +Eina_Bool tytest_edje_object_color_class_get(Evas_Object *termio EINA_UNUSED, const char *key, int *r, int *g, int *b, int *a, int *r1 EINA_UNUSED, int *g1 EINA_UNUSED, int *b1 EINA_UNUSED, int *a1 EINA_UNUSED, @@ -292,7 +292,7 @@ tytest_edje_object_color_class_get(Evas_Object *termio EINA_UNUSED, const char * *b = _bg.b; if (a) *a = _bg.a; - return 0; + return EINA_TRUE; } if (strncmp(key, "CURSOR", strlen("CURSOR")) == 0) { @@ -304,12 +304,12 @@ tytest_edje_object_color_class_get(Evas_Object *termio EINA_UNUSED, const char * *b = _cursor.b; if (a) *a = _cursor.a; - return 0; + return EINA_TRUE; } - return -1; + return EINA_FALSE; } -int +Eina_Bool tytest_edje_object_color_class_set(Evas_Object *termio EINA_UNUSED, const char *key, int r, int g, int b, int a, int r1 EINA_UNUSED, int g1 EINA_UNUSED, int b1 EINA_UNUSED, int a1 EINA_UNUSED, @@ -321,7 +321,7 @@ tytest_edje_object_color_class_set(Evas_Object *termio EINA_UNUSED, const char * _bg.g = g; _bg.b = b; _bg.a = a; - return 0; + return EINA_TRUE; } if (strncmp(key, "CURSOR", strlen("CURSOR")) == 0) { @@ -329,9 +329,9 @@ tytest_edje_object_color_class_set(Evas_Object *termio EINA_UNUSED, const char * _cursor.g = g; _cursor.b = b; _cursor.a = a; - return 0; + return EINA_TRUE; } - return -1; + return EINA_FALSE; } void