[Spice-devel] [PATCH 7/9] server: add user_data to SpiceBaseInstance

Marc-André Lureau marcandre.lureau at gmail.com
Mon Nov 18 02:28:31 PST 2013


From: Marc-André Lureau <marcandre.lureau at redhat.com>

This allow user code to associate data with an interface instance.
---
 server/spice.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/spice.h b/server/spice.h
index 95053f5..da3de3b 100644
--- a/server/spice.h
+++ b/server/spice.h
@@ -44,6 +44,7 @@ struct SpiceBaseInterface {
 };
 struct SpiceBaseInstance {
     const SpiceBaseInterface *sif;
+    void *user_data;
 };
 
 #define SPICE_BASE_INSTANCE(sin) ((SpiceBaseInstance*)sin)
-- 
1.8.3.1



More information about the Spice-devel mailing list