[PATCH] char-device.h: add needed headers

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

 



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

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