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:
Pavel Grunt 2017-06-01 15:40:47 +02:00
parent eb3d2bfcfd
commit 5dc55aa70d
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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,