summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-16 23:35:14 +0100
committeremersion <contact@emersion.fr>2019-01-17 09:53:23 +0100
commit0c7932a3af97dd0416dc2156dc82dfe0b8e3951d (patch)
treec986a2b2ceccfd340a6e844b2db3f9a533865387 /include
parent0c1f193083166ccc56107028bb8b59d7aa767732 (diff)
Move PAM into a child process
Diffstat (limited to 'include')
-rw-r--r--include/comm.h8
-rw-r--r--include/swaylock.h5
2 files changed, 12 insertions, 1 deletions
diff --git a/include/comm.h b/include/comm.h
new file mode 100644
index 0000000..8d3ff09
--- /dev/null
+++ b/include/comm.h
@@ -0,0 +1,8 @@
+#ifndef _SWAYLOCK_COMM_H
+#define _SWAYLOCK_COMM_H
+
+bool spawn_comm_child(void);
+ssize_t read_comm_request(char **buf_ptr);
+bool write_comm_reply(bool success);
+
+#endif
diff --git a/include/swaylock.h b/include/swaylock.h
index e1b7042..c33c29f 100644
--- a/include/swaylock.h
+++ b/include/swaylock.h
@@ -110,8 +110,11 @@ void render_frame(struct swaylock_surface *surface);
void render_frames(struct swaylock_state *state);
void damage_surface(struct swaylock_surface *surface);
void damage_state(struct swaylock_state *state);
-void initialize_pw_backend(void);
bool attempt_password(struct swaylock_password *pw);
void clear_password_buffer(struct swaylock_password *pw);
+void initialize_pw_backend(void);
+void run_pw_backend_child(void);
+void clear_buffer(char *buf, size_t size);
+
#endif