]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: Rename remote to unix
authorAki Tuomi <aki.tuomi@dovecot.fi>
Sun, 9 Oct 2016 17:19:22 +0000 (20:19 +0300)
committerGitLab <gitlab@git.dovecot.net>
Mon, 10 Oct 2016 10:34:23 +0000 (13:34 +0300)
This is to make more clear that the call requires
unix path and does not support TCP. There will be
TCP based API too later.

src/lib-program-client/program-client-remote.c
src/lib-program-client/program-client.h

index a64f36f6b62812f59fa88b0ab858a6503fe00c91..4c350fb0851e3c4de938f72207e804d686ef410f 100644 (file)
@@ -232,7 +232,7 @@ void program_client_remote_connected(struct program_client *pclient)
 }
 
 static
-int program_client_remote_connect(struct program_client *pclient)
+int program_client_unix_connect(struct program_client *pclient)
 {
        struct program_client_remote *slclient =
                (struct program_client_remote *) pclient;
@@ -317,17 +317,17 @@ int program_client_remote_disconnect(struct program_client *pclient, bool force)
 }
 
 struct program_client *
-program_client_remote_create(const char *socket_path, const char *const *args,
-                            const struct program_client_settings *set,
-                            bool noreply)
+program_client_unix_create(const char *socket_path, const char *const *args,
+                          const struct program_client_settings *set,
+                          bool noreply)
 {
        struct program_client_remote *pclient;
        pool_t pool;
 
-       pool = pool_alloconly_create("program client remote", 1024);
+       pool = pool_alloconly_create("program client unix", 1024);
        pclient = p_new(pool, struct program_client_remote, 1);
        program_client_init(&pclient->client, pool, socket_path, args, set);
-       pclient->client.connect = program_client_remote_connect;
+       pclient->client.connect = program_client_unix_connect;
        pclient->client.close_output = program_client_remote_close_output;
        pclient->client.disconnect = program_client_remote_disconnect;
        pclient->noreply = noreply;
index 651c82d6a946630f6c86a141b28f02e4f8c2b8ba..711a968deda8fe8ce001e1d1de7d01b0d06adbdf 100644 (file)
@@ -23,7 +23,7 @@ typedef void program_client_callback_t(int, void *);
 struct program_client *program_client_local_create(const char *bin_path,
        const char *const *args,
        const struct program_client_settings *set);
-struct program_client *program_client_remote_create(const char *socket_path,
+struct program_client *program_client_unix_create(const char *socket_path,
        const char *const *args,
        const struct program_client_settings *set, bool noreply);