From d61cc219f6bd3c4ffc96239893a8ded9b5a83b30 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Fri, 9 Jul 2021 13:22:35 +0300 Subject: lib: remove dependency on spa_pod and spa in general Replace spa_pod with a custom icipc_data structure, which is based on spa_pod and it's fully compatible with it Signed-off-by: George Kiagiadakis --- lib/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/client.c') diff --git a/lib/client.c b/lib/client.c index 4186ce4..f1c4da1 100644 --- a/lib/client.c +++ b/lib/client.c @@ -40,7 +40,7 @@ void icipc_client_free(struct icipc_client *self) { bool icipc_client_send_request( struct icipc_client *self, const char *name, - const struct spa_pod *args, + const struct icipc_data *args, icipc_sender_reply_func_t reply, void *data) { struct icipc_sender *base = icipc_client_to_sender(self); @@ -55,7 +55,7 @@ bool icipc_client_send_request( return icipc_sender_send(base, buffer, size, reply, data); } -const struct spa_pod *icipc_client_send_request_finish( +const struct icipc_data *icipc_client_send_request_finish( struct icipc_sender *self, const uint8_t * buffer, size_t size, @@ -68,7 +68,7 @@ const struct spa_pod *icipc_client_send_request_finish( /* ok */ if (icipc_protocol_is_reply_ok(buffer, size)) { - const struct spa_pod *value = NULL; + const struct icipc_data *value = NULL; if (icipc_protocol_parse_reply_ok(buffer, size, &value)) return value; } -- cgit 1.2.3-korg