Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inactivity] Refactor inactivity module. Contributes to JB#31927
Use common prefix for all functions in inactivity module and shuffle code so that functions that are related are close to each other. Install datapipe trackers for related state variables instead of polling them here and there. Split implementation of "activity callback" feature in three layers: object memory management, list of objects management and dbus method call handlers. Instead of defaulting to "active" state on mce startup, make it so that initial state depends on what display state mce lands on. Also make sure that a) on mce startup the initial state is always broadcast b) the same state is not broadcast repeatedly. Simplify code by omitting return value tracking in callback functions where the return value is not actually used for anything meaningful.
- Loading branch information