Skip to content

Commit

Permalink
lib-program-client: Rename remote to unix
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cmouse authored and GitLab committed Oct 10, 2016
1 parent 98bc2ec commit 9f29dfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/lib-program-client/program-client-remote.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/lib-program-client/program-client.h
Expand Up @@ -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);

Expand Down

0 comments on commit 9f29dfc

Please sign in to comment.