Re: [PATCH spice-vdagent v2] vdagentd: Allow to compile without session info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

> ---
>  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@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]