[Spice-devel] [PATCH 27/39] constify SpiceBaseInterface
Gerd Hoffmann
kraxel at redhat.com
Tue May 18 08:43:04 PDT 2010
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
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 a5e6c1b..71ce409 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);
@@ -4182,7 +4182,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