summaryrefslogtreecommitdiff
path: root/include/comm.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-17 12:42:13 +0100
committeremersion <contact@emersion.fr>2019-01-17 12:42:13 +0100
commitc77f0eb4ed6af1fad071be0113b3822b96b561aa (patch)
treef5b40b8586eba1b42f904083871667f5df707853 /include/comm.h
parent28c0abbc579add426b3d520fc9042d0a376662a8 (diff)
Check password without blocking
Diffstat (limited to 'include/comm.h')
-rw-r--r--include/comm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/comm.h b/include/comm.h
index 8d3ff09..defc2f4 100644
--- a/include/comm.h
+++ b/include/comm.h
@@ -1,8 +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