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:
Peter Hutterer 2020-08-05 16:25:43 +10:00
parent 283cc87416
commit 311bc6b4fc
3 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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