diff options
| author | Drew DeVault <sir@cmpwn.com> | 2019-01-17 08:12:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-17 08:12:03 -0500 |
| commit | 79dd99cb3c8c8de81c822be04442aeff597aea70 (patch) | |
| tree | b509cdf4456b212af4fc8c392838f29446cd5c35 /include/comm.h | |
| parent | db577f8e671fe65fd1d0b56f9d5ef4143f0752d1 (diff) | |
| parent | c77f0eb4ed6af1fad071be0113b3822b96b561aa (diff) | |
Merge pull request #19 from swaywm/async
Async password verification
Diffstat (limited to 'include/comm.h')
| -rw-r--r-- | include/comm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/comm.h b/include/comm.h new file mode 100644 index 0000000..defc2f4 --- /dev/null +++ b/include/comm.h @@ -0,0 +1,18 @@ +#ifndef _SWAYLOCK_COMM_H +#define _SWAYLOCK_COMM_H + +#include <stdbool.h> + +struct swaylock_password; + +bool spawn_comm_child(void); +ssize_t read_comm_request(char **buf_ptr); +bool write_comm_reply(bool success); +// Requests the provided password to be checked. The password is always cleared +// when the function returns. +bool write_comm_request(struct swaylock_password *pw); +bool read_comm_reply(void); +// FD to poll for password authentication replies. +int get_comm_reply_fd(void); + +#endif |
