Change popup_ops name for cooldown_done and cooldown_warning 77/201777/1 accepted/tizen/unified/20190321.062451 submit/tizen/20190320.052505
authorlokilee73 <changjoo.lee@samsung.com>
Tue, 19 Mar 2019 10:13:34 +0000 (19:13 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Tue, 19 Mar 2019 10:14:08 +0000 (19:14 +0900)
Change-Id: I75b5b15dcd3bbc40cb0558076b311d1582a06c1d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/cooldown/cooldown-mobile.c
src/cooldown/cooldown-wearable.c

index aabc427..2b23e93 100644 (file)
 #include "popup-common.h"
 
 static const struct popup_ops cooldown_poweroff_ops;
-static const struct popup_ops cooldown_ops;
-static const struct popup_ops cooled_down_ops;
+static const struct popup_ops cooldown_warning_ops;
+static const struct popup_ops cooldown_done_ops;
 static const struct popup_ops cooldown_remove_ops;
 
 static int remove_cooldown_popups(bundle *b, const struct popup_ops *ops)
 {
        unload_simple_popup(&cooldown_poweroff_ops);
-       unload_simple_popup(&cooldown_ops);
-       unload_simple_popup(&cooled_down_ops);
+       unload_simple_popup(&cooldown_warning_ops);
+       unload_simple_popup(&cooldown_done_ops);
        terminate_if_no_popup();
 
        return 0;
@@ -44,11 +44,11 @@ static int remove_other_cooldown_popups(bundle *b, const struct popup_ops *ops)
        if (ops != &cooldown_poweroff_ops)
                unload_simple_popup(&cooldown_poweroff_ops);
 
-       if (ops != &cooldown_ops)
-               unload_simple_popup(&cooldown_ops);
+       if (ops != &cooldown_warning_ops)
+               unload_simple_popup(&cooldown_warning_ops);
 
-       if (ops != &cooled_down_ops)
-               unload_simple_popup(&cooled_down_ops);
+       if (ops != &cooldown_done_ops)
+               unload_simple_popup(&cooldown_done_ops);
 
        return 0;
 }
@@ -63,7 +63,7 @@ static const struct popup_ops cooldown_poweroff_ops = {
        .pre            = remove_other_cooldown_popups,
 };
 
-static const struct popup_ops cooldown_ops = {
+static const struct popup_ops cooldown_warning_ops = {
        .name           = "cooldown_warning",
        .pattern        = FEEDBACK_PATTERN_LOWBATT,
        .show           = load_simple_popup,
@@ -73,7 +73,7 @@ static const struct popup_ops cooldown_ops = {
        .pre            = remove_other_cooldown_popups,
 };
 
-static const struct popup_ops cooled_down_ops = {
+static const struct popup_ops cooldown_done_ops = {
        .name           = "cooldown_done",
        .pattern        = FEEDBACK_PATTERN_LOWBATT,
        .show           = load_simple_popup,
@@ -92,7 +92,7 @@ static const struct popup_ops cooldown_remove_ops = {
 static __attribute__ ((constructor)) void cooldown_register_popup(void)
 {
        register_popup(&cooldown_poweroff_ops);
-       register_popup(&cooldown_ops);
-       register_popup(&cooled_down_ops);
+       register_popup(&cooldown_warning_ops);
+       register_popup(&cooldown_done_ops);
        register_popup(&cooldown_remove_ops);
 }
index 1de66f0..e975522 100644 (file)
@@ -474,7 +474,7 @@ static const struct popup_ops cooldown_warning_ops = {
        .terminate      = cooldown_warning_terminate,
 };
 
-static const struct popup_ops cooled_down_ops = {
+static const struct popup_ops cooldown_done_ops = {
        .name           = "cooldown_done",
        .pattern        = FEEDBACK_PATTERN_LOWBATT,
        .show           = load_simple_popup,
@@ -489,5 +489,5 @@ static __attribute__ ((constructor)) void cooldown_register_popup(void)
        register_popup(&cooldown_poweron_ops);
        register_popup(&cooldown_poweroff_ops);
        register_popup(&cooldown_warning_ops);
-       register_popup(&cooled_down_ops);
+       register_popup(&cooldown_done_ops);
 }