[Spice-devel] [PATCH spice-vdagent v2] vdagentd: Allow to compile without session info
Victor Toso
victortoso at redhat.com
Thu May 4 10:01:44 UTC 2017
Hi,
On Thu, May 04, 2017 at 11:52:25AM +0200, Pavel Grunt wrote:
> 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'
Yes, this the right way
Acked-by: Victor Toso <victortoso at redhat.com>
> ---
> 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170504/a0278125/attachment.sig>
More information about the Spice-devel
mailing list