void set_mail (const void *stuff) { int value = *(const int *)stuff; if (value < 0 || value > 3) { say("/SET MAIL must be 0, 1, 2, or 3"); set_int_var(MAIL_VAR, 0); return; } else if (value == 0) checkmail->deinit(); else { if (!checkmail->init()) return; } update_system_timer(mail_timeref); update_all_status(); cursor_to_input(); }
void set_mail_interval (const void *stuff) { update_system_timer(mail_timeref); }
/* * When cpu saver mode is turned off (by the user pressing a key), then * we immediately do all of the system timers and then they will reset * themselves to go off as regular. */ void reset_system_timers (void) { cpu_saver = 0; update_system_timer(NULL); cpu_saver_timer(NULL); }
void my_set_clock (void *stuff) { update_system_timer(clock_timeref); update_all_status(); }
void set_clock_interval (void *stuff) { update_system_timer(clock_timeref); /* XXX Oh heck, why not? */ }
void set_clock (const void *stuff) { update_system_timer(clock_timeref); update_all_status(); cursor_to_input(); }