summaryrefslogtreecommitdiff
path: root/src/modules/module-client-node/client-node.c
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-05-15 12:17:52 +0200
committerWim Taymans <wtaymans@redhat.com>2019-05-15 12:17:52 +0200
commit448c1937adb1f15fe14e7262b2625431998b1dc3 (patch)
tree5e9568a632d697258cee58fb2edf9dae27c5a55f /src/modules/module-client-node/client-node.c
parent6ee192dff5a19f95b25b5eaf11be42cf7b9990b5 (diff)
hook: separate spa_callbacks from the hook
Make a spa_callbacks with just the functions and data and use this in the hook and objects.
Diffstat (limited to 'src/modules/module-client-node/client-node.c')
-rw-r--r--src/modules/module-client-node/client-node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c
index 3be61fc3..450e875b 100644
--- a/src/modules/module-client-node/client-node.c
+++ b/src/modules/module-client-node/client-node.c
@@ -128,7 +128,7 @@ struct node {
struct spa_loop *data_loop;
struct spa_hook_list hooks;
- struct spa_hook callbacks;
+ struct spa_callbacks callbacks;
struct io ios[MAX_IO];
struct pw_resource *resource;
@@ -520,7 +520,7 @@ impl_node_set_callbacks(struct spa_node *node,
spa_return_val_if_fail(node != NULL, -EINVAL);
this = SPA_CONTAINER_OF(node, struct node, node);
- this->callbacks = SPA_HOOK_INIT(callbacks, data);
+ this->callbacks = SPA_CALLBACKS_INIT(callbacks, data);
return 0;
}
@@ -1529,7 +1529,7 @@ static void node_port_added(void *data, struct pw_port *port)
PW_PORT_MIX_FLAG_MULTI |
PW_PORT_MIX_FLAG_MIX_ONLY);
- port->impl = SPA_HOOK_INIT(&port_impl, p);
+ port->impl = SPA_CALLBACKS_INIT(&port_impl, p);
port->owner_data = impl;
}