libseat: Improve logging with seatd conn helpers

Add helpers around connection access to have all logging centralized and
reduce code duplication. Improve existing helpers to further reduce code
duplication.

The seatd backend should have much better logging after this.
This commit is contained in:
Kenny Levinsen 2020-08-29 20:31:51 +02:00
parent 69d57aaf33
commit 8b4d139873
3 changed files with 102 additions and 106 deletions

View file

@ -28,7 +28,7 @@ int connection_put_fd(struct connection *connection, int fd);
size_t connection_pending(struct connection *connection);
int connection_get(struct connection *connection, void *dst, size_t count);
int connection_get_fd(struct connection *connection);
int connection_get_fd(struct connection *connection, int *fd);
void connection_restore(struct connection *connection, size_t count);
void connection_close_fds(struct connection *connection);