From a09a99b6d91826bcd4ba336065a3a87423068ded Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 28 Jul 2020 14:17:58 +1000 Subject: [PATCH] libeis: add the init bits for a new libeis context for unix sockets This is the easiest to implement, so let's start with that. Signed-off-by: Peter Hutterer --- src/libeis.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libeis.h b/src/libeis.h index 1e2b4c4..d34575b 100644 --- a/src/libeis.h +++ b/src/libeis.h @@ -136,6 +136,16 @@ eis_portal_init(struct eis *ctx); int eis_dbus_init(struct eis *ctx); +struct eis * +eis_socket_new_context(void *userdata); + +/** + * Initialize the context with a UNIX socket name. + * If the path does not start with / it is relative to $XDG_RUNTIME_DIR. + */ +int +eis_socket_init(struct eis *ctx, const char *path); + int eis_get_fd(struct eis *eis);