summaryrefslogtreecommitdiff
path: root/src/spice-types.h
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-09-23 11:16:58 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2015-10-09 10:00:56 -0500
commitd2f33178c40ac51b1c8b1bf796a328631d9869c7 (patch)
tree46d293aac260682fe88ae54bd2f53ece953b281b /src/spice-types.h
parent75253b7a8fb8fa59c317abeb01b4fa3981597d9e (diff)
Glib applications should only include spice-client.h
Generate a compiler warning if an application attempts to include a different header.
Diffstat (limited to 'src/spice-types.h')
-rw-r--r--src/spice-types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/spice-types.h b/src/spice-types.h
index f149094..ccc0c3a 100644
--- a/src/spice-types.h
+++ b/src/spice-types.h
@@ -18,6 +18,10 @@
#ifndef __SPICE_CLIENT_TYPES_H__
#define __SPICE_CLIENT_TYPES_H__
+#if !defined(__SPICE_CLIENT_H_INSIDE__) && !defined(SPICE_COMPILATION)
+#warning "Only <spice-client.h> can be included directly"
+#endif
+
G_BEGIN_DECLS
/* SpiceSession */