summaryrefslogtreecommitdiffstats
path: root/src/spice-gtk-session.h
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-09-24 17:05:39 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2015-10-09 10:00:56 -0500
commit056f0510a955f1b292567b8a4ab1962b2727da11 (patch)
tree26b4f9b5afe4ca76020a7f3acb57cfe43b61c17a /src/spice-gtk-session.h
parentd2f33178c40ac51b1c8b1bf796a328631d9869c7 (diff)
downloadspice-gtk-056f0510a955f1b292567b8a4ab1962b2727da11.tar.gz
spice-gtk-056f0510a955f1b292567b8a4ab1962b2727da11.tar.xz
spice-gtk-056f0510a955f1b292567b8a4ab1962b2727da11.zip
Gtk applications should only include spice-client-gtk.h
This header is the single include needed for all gtk-related functionality, similar to spice-client.h. Generate a compiler warning if a different header is included.
Diffstat (limited to 'src/spice-gtk-session.h')
-rw-r--r--src/spice-gtk-session.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/spice-gtk-session.h b/src/spice-gtk-session.h
index a69c174..9a45d85 100644
--- a/src/spice-gtk-session.h
+++ b/src/spice-gtk-session.h
@@ -18,6 +18,10 @@
#ifndef __SPICE_CLIENT_GTK_SESSION_H__
#define __SPICE_CLIENT_GTK_SESSION_H__
+#if !defined(__SPICE_CLIENT_GTK_H_INSIDE__) && !defined(SPICE_COMPILATION)
+#warning "Only <spice-client-gtk.h> can be included directly"
+#endif
+
#include "spice-client.h"
G_BEGIN_DECLS