summaryrefslogtreecommitdiffstats
path: root/lib/server.c
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2021-07-09 13:22:35 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2021-07-28 13:19:02 +0300
commitd61cc219f6bd3c4ffc96239893a8ded9b5a83b30 (patch)
tree4ac3c1b1ed0ede9b347e27b262f939213146a221 /lib/server.c
parenta2a3f6912e60c7932bad87a6d2249f0e83e637e1 (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/server.c')
-rw-r--r--lib/server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/server.c b/lib/server.c
index 747b829..6229ecd 100644
--- a/lib/server.c
+++ b/lib/server.c
@@ -7,6 +7,7 @@
*/
#include <pthread.h>
+#include <string.h>
#include "private.h"
#include "protocol.h"
@@ -60,7 +61,7 @@ static bool handle_message(
void *data) {
ServerPriv *priv = icipc_receiver_get_user_data(base);
const char *name = NULL;
- const struct spa_pod *args = NULL;
+ const struct icipc_data *args = NULL;
icipc_log_info("server: message from client %d received", sender_fd);
@@ -231,7 +232,7 @@ void icipc_server_clear_request_handler(
bool icipc_server_reply_ok(
struct icipc_server *self,
int client_fd,
- const struct spa_pod *value) {
+ const struct icipc_data *value) {
const size_t s = icipc_protocol_calculate_reply_ok_size(value);
uint8_t b[s];
icipc_protocol_build_reply_ok(b, s, value);