1 #ifndef _SWAYLOCK_COMM_H
2 #define _SWAYLOCK_COMM_H
3 
4 #include <stdbool.h>
5 
6 struct swaylock_password;
7 
8 bool spawn_comm_child(void);
9 ssize_t read_comm_request(char **buf_ptr);
10 bool write_comm_reply(bool success);
11 // Requests the provided password to be checked. The password is always cleared
12 // when the function returns.
13 bool write_comm_request(struct swaylock_password *pw);
14 bool read_comm_reply(void);
15 // FD to poll for password authentication replies.
16 int get_comm_reply_fd(void);
17 
18 #endif
19