[Spice-devel] [RFC 4/4] use new @ifdef directive for smartcard messages

Christophe Fergeau cfergeau at redhat.com
Fri Jun 24 07:34:05 PDT 2011


We don't want to conditionally compile the smartcard messages
depending on whether USE_SMARTCARD is set or not, we can now use
the @ifdef attribute for that.
---
 spice.proto |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/spice.proto b/spice.proto
index cb4c9cd..4c072ed 100644
--- a/spice.proto
+++ b/spice.proto
@@ -1171,7 +1171,7 @@ channel SmartcardChannel : BaseChannel {
     message {
 	int8 reader_name[] @zero_terminated @nonnull;
     } @ctype(VSCMsgReaderAdd) reader_add = 101;
-};
+} @ifdef(USE_SMARTCARD);
 
 protocol Spice {
     MainChannel main = 1;
-- 
1.7.5.4



More information about the Spice-devel mailing list