mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 14:18:36 +00:00
canvas_base: Allow to specify constant operations
There's no need for the canvas operations to be changed. This allows without casts to have the operation structures constants in the code. This potentially allows to reduce attack surface having some more data constant instead or read/write. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
parent
72ae9b2971
commit
45e2844845
@ -60,7 +60,7 @@ typedef struct {
|
||||
} SpiceImageCacheOps;
|
||||
|
||||
struct _SpiceImageCache {
|
||||
SpiceImageCacheOps *ops;
|
||||
const SpiceImageCacheOps *ops;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
@ -69,7 +69,7 @@ typedef struct {
|
||||
} SpiceImageSurfacesOps;
|
||||
|
||||
struct _SpiceImageSurfaces {
|
||||
SpiceImageSurfacesOps *ops;
|
||||
const SpiceImageSurfacesOps *ops;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user