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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-07-28 14:17:58 +10:00
parent 7f53c30157
commit a09a99b6d9

View file

@ -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);