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