[Spice-devel] [PATCH] char-device.h: add needed headers
Jonathon Jongsma
jjongsma at redhat.com
Tue May 24 18:39:24 UTC 2016
Include spice-common headers for types that are used directly in the
RedCharDevice header.
---
These includes are not currently needed -- they get pulled in by the
red-channel.h include. But if we decide in the future to remove the
red-channel.h include here and use forward declarations (e.g. to reduce compile
time), the build would break.
It's generally my opinion that headers for types that are used in a file should
be explicitly included rather than relying on indirect inclusion via other
headers. But since this patch doesn't currently fix any problems, it could be
rejected with no ill effects.
server/char-device.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/char-device.h b/server/char-device.h
index 39bff4e..2a2fc94 100644
--- a/server/char-device.h
+++ b/server/char-device.h
@@ -19,6 +19,8 @@
#define CHAR_DEVICE_H_
#include <glib-object.h>
+#include <common/ring.h>
+#include <common/marshaller.h>
#include "spice.h"
#include "red-channel.h"
--
2.4.11
More information about the Spice-devel
mailing list