[Spice-devel] [PATCH spice-vdagent v2] vdagentd: Allow to compile without session info
Pavel Grunt
pgrunt at redhat.com
Thu May 4 09:52:25 UTC 2017
Add a dummy implementation of session_info_session_is_locked
configure supports --with-session-info=none, however the build fails:
src_spice_vdagentd-vdagentd.o: In function `do_client_file_xfer':
src/vdagentd/vdagentd.c:336: undefined reference to
`session_info_session_is_locked'
---
src/vdagentd/dummy-session-info.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/vdagentd/dummy-session-info.c b/src/vdagentd/dummy-session-info.c
index 8ffe5e4..d8f1833 100644
--- a/src/vdagentd/dummy-session-info.c
+++ b/src/vdagentd/dummy-session-info.c
@@ -54,3 +54,8 @@ gboolean session_info_is_user(struct session_info *si)
{
return TRUE;
}
+
+gboolean session_info_session_is_locked(G_GNUC_UNUSED struct session_info *si)
+{
+ return FALSE;
+}
--
2.12.2
More information about the Spice-devel
mailing list