[Spice-devel] [PATCH 27/35] constify SpiceBaseInterface
Gerd Hoffmann
kraxel at redhat.com
Wed May 12 04:32:21 PDT 2010
---
server/reds.c | 4 ++--
server/vd_interface.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/reds.c b/server/reds.c
index e8fa763..2d03029 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -4039,7 +4039,7 @@ static void attach_to_red_agent(VDIPortInterface *interface)
__visible__ int spice_server_add_interface(SpiceServer *s,
SpiceBaseInstance *sin)
{
- SpiceBaseInterface *interface = sin->sif;
+ const SpiceBaseInterface *interface = sin->sif;
ASSERT(reds == s);
@@ -4181,7 +4181,7 @@ __visible__ int spice_server_add_interface(SpiceServer *s,
__visible__ int spice_server_remove_interface(SpiceBaseInstance *sin)
{
- SpiceBaseInterface *interface = sin->sif;
+ const SpiceBaseInterface *interface = sin->sif;
if (strcmp(interface->type, SPICE_INTERFACE_TABLET) == 0) {
red_printf("remove SPICE_INTERFACE_TABLET");
diff --git a/server/vd_interface.h b/server/vd_interface.h
index d3ce999..78f0f62 100644
--- a/server/vd_interface.h
+++ b/server/vd_interface.h
@@ -47,7 +47,7 @@ struct SpiceBaseInterface {
uint32_t minor_version;
};
struct SpiceBaseInstance {
- SpiceBaseInterface *sif;
+ const SpiceBaseInterface *sif;
};
#define SPICE_INTERFACE_CORE "core"
--
1.6.6.1
More information about the Spice-devel
mailing list