main.h 606 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef BACKEND_MAIN_H_
  2. #define BACKEND_MAIN_H_
  3. #include "api.h"
  4. #include "conf.h"
  5. #include "battery.h"
  6. #include "backlight.h"
  7. #include "devicelock.h"
  8. #include "x11lock.h"
  9. #include "xevrep.h"
  10. #include "autodim.h"
  11. struct backend {
  12. struct config_file *config;
  13. struct battery *battery;
  14. struct backlight *backlight;
  15. struct devicelock *devicelock;
  16. struct x11lock x11lock;
  17. struct xevrep xevrep;
  18. struct autodim *autodim;
  19. };
  20. extern struct backend backend;
  21. void block_signals(void);
  22. void unblock_signals(void);
  23. void notify_clients(struct pt_message *msg, uint16_t flags);
  24. #endif /* BACKEND_MAIN_H_ */