mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-08 22:10:16 +01:00
libei: rename to ei_setup_backend_socket()
Now that the backend is more of an implementation detail, namespace for ei_setup_backend_foo() Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
283cc87416
commit
311bc6b4fc
3 changed files with 4 additions and 4 deletions
|
|
@ -73,7 +73,7 @@ static const struct ei_backend_interface interface = {
|
|||
};
|
||||
|
||||
_public_ int
|
||||
ei_socket_init(struct ei *ei, const char *socketpath)
|
||||
ei_setup_backend_socket(struct ei *ei, const char *socketpath)
|
||||
{
|
||||
assert(ei);
|
||||
assert(!ei->backend);
|
||||
|
|
|
|||
|
|
@ -109,10 +109,10 @@ void
|
|||
ei_configure_name(struct ei * ei, const char *name);
|
||||
|
||||
/**
|
||||
* Initialize the ei context with a named socket as backend.
|
||||
* Set this ei context to use the socket backend.
|
||||
*/
|
||||
int
|
||||
ei_socket_init(struct ei *ei, const char *socketpath);
|
||||
ei_setup_backend_socket(struct ei *ei, const char *socketpath);
|
||||
|
||||
struct ei *
|
||||
ei_ref(struct ei *ctx);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ int main(int argc, char **argv)
|
|||
|
||||
ei_configure_name(ei, "ei-socket-client-demo");
|
||||
|
||||
int rc = ei_socket_init(ei, getenv("LIBEI_SOCKET") ? NULL : SOCKETNAME);
|
||||
int rc = ei_setup_backend_socket(ei, getenv("LIBEI_SOCKET") ? NULL : SOCKETNAME);
|
||||
|
||||
if (rc != 0) {
|
||||
fprintf(stderr, "init failed: %s\n", strerror(errno));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue