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

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

 



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