MCPcopy Create free account
hub / github.com/FedeDP/Clight / timeout_callback

Function timeout_callback

src/modules/screen.c:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181static void timeout_callback(int old_val, bool reset) {
182 if (conf.screen_conf.timeout[state.ac_state] <= 0) {
183 pause_screen(true, TIMEOUT, true);
184 } else {
185 pause_screen(false, TIMEOUT, false);
186 if (reset) {
187 reset_timer(screen_fd, old_val, conf.screen_conf.timeout[state.ac_state]);
188 }
189 }
190}
191
192static void pause_screen(bool pause, enum mod_pause type, bool reset_screen_br) {
193 if (CHECK_PAUSE(pause, type)) {

Callers 2

receive_waiting_stateFunction · 0.70
receiveFunction · 0.70

Calls 2

pause_screenFunction · 0.85
reset_timerFunction · 0.85

Tested by

no test coverage detected