swaylock/include/comm.h

19 lines
490 B
C
Raw Permalink Normal View History

2019-01-16 16:35:14 -06:00
#ifndef _SWAYLOCK_COMM_H
#define _SWAYLOCK_COMM_H
2019-01-17 05:42:13 -06:00
#include <stdbool.h>
struct swaylock_password;
2019-01-16 16:35:14 -06:00
bool spawn_comm_child(void);
ssize_t read_comm_request(char **buf_ptr);
bool write_comm_reply(bool success);
2019-01-17 05:42:13 -06:00
// 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);
2019-01-16 16:35:14 -06:00
#endif