x11lock.h 365 B

12345678910111213141516171819
  1. #ifndef BACKEND_X11LOCK_H_
  2. #define BACKEND_X11LOCK_H_
  3. #include <unistd.h>
  4. #include <sys/types.h>
  5. #include <sys/signal.h>
  6. struct x11lock {
  7. sig_atomic_t helper_pid;
  8. sig_atomic_t killed;
  9. };
  10. int block_x11_input(struct x11lock *xl);
  11. void unblock_x11_input(struct x11lock *xl);
  12. void x11lock_sigchld(struct x11lock *xl, int wait);
  13. #endif /* BACKEND_X11LOCK_H_ */