From d1a765c1799f62b847d704dc32571673dbe18867 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 29 Dec 2021 16:02:22 +1100 Subject: [PATCH] [client] spice: update PureSpice submodule and adjust for new API usage --- client/src/main.c | 14 ++++++++++++-- repos/PureSpice | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index f0bdae40..53220122 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1018,8 +1018,18 @@ static int lg_run(void) audioStop, audioData); - if (!purespice_connect(g_params.spiceHost, g_params.spicePort, "", - g_params.useSpiceAudio)) + const struct PSConfig config = + { + .host = g_params.spiceHost, + .port = g_params.spicePort, + .password = "", + .playback = g_params.useSpiceAudio, + .log.info = debug_info, + .log.warn = debug_warn, + .log.error = debug_error + }; + + if (!purespice_connect(&config)) { DEBUG_ERROR("Failed to connect to spice server"); return -1; diff --git a/repos/PureSpice b/repos/PureSpice index b7fbd3b8..28697ff3 160000 --- a/repos/PureSpice +++ b/repos/PureSpice @@ -1 +1 @@ -Subproject commit b7fbd3b816ba19dd3cb3eac3649ec97d9ff08f88 +Subproject commit 28697ff3cbbff66d3fe2e7c42128fce49d313fbd