summaryrefslogtreecommitdiffstats
path: root/ui/common
diff options
context:
space:
mode:
Diffstat (limited to 'ui/common')
-rw-r--r--ui/common/discover-client.c3
-rw-r--r--ui/common/discover-client.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/ui/common/discover-client.c b/ui/common/discover-client.c
index 8672ae0..6b991b1 100644
--- a/ui/common/discover-client.c
+++ b/ui/common/discover-client.c
@@ -33,7 +33,7 @@ static int discover_client_destructor(void *arg)
}
struct discover_client* discover_client_init(
- const struct discover_client_ops *ops)
+ const struct discover_client_ops *ops, void *cb_arg)
{
struct discover_client *client;
struct sockaddr_un addr;
@@ -43,6 +43,7 @@ struct discover_client* discover_client_init(
return NULL;
memcpy(&client->ops, ops, sizeof(client->ops));
+ client->ops.cb_arg = cb_arg;
client->fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (!client->fd < 0) {
diff --git a/ui/common/discover-client.h b/ui/common/discover-client.h
index 719f72a..fdcf930 100644
--- a/ui/common/discover-client.h
+++ b/ui/common/discover-client.h
@@ -19,7 +19,7 @@ struct discover_client_ops {
};
struct discover_client *discover_client_init(
- const struct discover_client_ops *ops);
+ const struct discover_client_ops *ops, void *cb_arg);
int discover_client_get_fd(const struct discover_client *client);
OpenPOWER on IntegriCloud