mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 15:45:54 +00:00
reds: Constantify agent message parameter
Make clear that the function is not changing it Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
eb3d2bfcfd
commit
5dc55aa70d
@ -1088,7 +1088,7 @@ static void reds_client_monitors_config_cleanup(RedsState *reds)
|
||||
}
|
||||
|
||||
static void reds_on_main_agent_monitors_config(RedsState *reds,
|
||||
MainChannelClient *mcc, void *message, size_t size)
|
||||
MainChannelClient *mcc, const void *message, size_t size)
|
||||
{
|
||||
VDAgentMessage *msg_header;
|
||||
VDAgentMonitorsConfig *monitors_config;
|
||||
@ -1111,7 +1111,8 @@ static void reds_on_main_agent_monitors_config(RedsState *reds,
|
||||
reds_client_monitors_config_cleanup(reds);
|
||||
}
|
||||
|
||||
void reds_on_main_agent_data(RedsState *reds, MainChannelClient *mcc, void *message, size_t size)
|
||||
void reds_on_main_agent_data(RedsState *reds, MainChannelClient *mcc, const void *message,
|
||||
size_t size)
|
||||
{
|
||||
RedCharDeviceVDIPort *dev = reds->agent_dev;
|
||||
VDIChunkHeader *header;
|
||||
|
||||
@ -79,7 +79,8 @@ void reds_on_main_agent_start(RedsState *reds, MainChannelClient *mcc, uint32_t
|
||||
void reds_on_main_agent_tokens(RedsState *reds, MainChannelClient *mcc, uint32_t num_tokens);
|
||||
uint8_t *reds_get_agent_data_buffer(RedsState *reds, MainChannelClient *mcc, size_t size);
|
||||
void reds_release_agent_data_buffer(RedsState *reds, uint8_t *buf);
|
||||
void reds_on_main_agent_data(RedsState *reds, MainChannelClient *mcc, void *message, size_t size);
|
||||
void reds_on_main_agent_data(RedsState *reds, MainChannelClient *mcc, const void *message,
|
||||
size_t size);
|
||||
void reds_on_main_migrate_connected(RedsState *reds, int seamless); //should be called when all the clients
|
||||
// are connected to the target
|
||||
bool reds_handle_migrate_data(RedsState *recs, MainChannelClient *mcc,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user