[Spice-devel] [PATCH spice-gtk 1/2] file-trasfer-task: Protect header include

Fabiano FidĂȘncio fidencio at redhat.com
Wed May 25 05:55:17 UTC 2016


On Wed, May 25, 2016 at 7:30 AM, Pavel Grunt <pgrunt at redhat.com> wrote:
> As stated in the commit d2f33178c40ac51b1c8b1bf796a328631d9869c7 Glib
> applications should only include "spice-client.h".
> ---
>  src/spice-file-transfer-task.h | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/src/spice-file-transfer-task.h b/src/spice-file-transfer-task.h
> index 18dc509..fba132e 100644
> --- a/src/spice-file-transfer-task.h
> +++ b/src/spice-file-transfer-task.h
> @@ -18,6 +18,12 @@
>  #ifndef __SPICE_FILE_TRANSFER_TASK_H__
>  #define __SPICE_FILE_TRANSFER_TASK_H__
>
> +#if !defined(__SPICE_CLIENT_H_INSIDE__) && !defined(SPICE_COMPILATION)
> +#warning "Only <spice-client.h> can be included directly"
> +#endif
> +
> +#include "spice-client.h"
> +
>  #include <glib-object.h>
>
>  G_BEGIN_DECLS
> --
> 2.8.3
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

ACK both patches!


More information about the Spice-devel mailing list