#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;
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;
}
.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,
.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,
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);
}
.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,
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);
}