diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2021-07-09 13:22:35 +0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2021-07-28 13:19:02 +0300 |
commit | d61cc219f6bd3c4ffc96239893a8ded9b5a83b30 (patch) | |
tree | 4ac3c1b1ed0ede9b347e27b262f939213146a221 /lib/client.h | |
parent | a2a3f6912e60c7932bad87a6d2249f0e83e637e1 (diff) |
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 <george.kiagiadakis@collabora.com>
Diffstat (limited to 'lib/client.h')
-rw-r--r-- | lib/client.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/client.h b/lib/client.h index 597552c..226d87a 100644 --- a/lib/client.h +++ b/lib/client.h @@ -9,8 +9,6 @@ #ifndef __ICIPC_CLIENT_H__ #define __ICIPC_CLIENT_H__ -#include <spa/pod/pod.h> - #include <stddef.h> #include "sender.h" @@ -23,6 +21,7 @@ extern "C" { #define icipc_client_to_sender(self) ((struct icipc_sender *)(self)) struct icipc_client; +struct icipc_data; ICIPC_API struct icipc_client *icipc_client_new(const char *path, bool connect); @@ -34,14 +33,14 @@ ICIPC_API 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); /* for reply handlers only */ ICIPC_API -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, |