mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 16:48:06 +00:00
red-channel-client: Make some members const
This is now easier moving from GQueue to std::list. Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Acked-by: Julien Ropé <jrope@gmail.com>
This commit is contained in:
parent
8d8745211d
commit
db61c35e7f
@ -1452,12 +1452,12 @@ void RedChannelClient::pipe_add_empty_msg(int msg_type)
|
||||
pipe_add(new_empty_msg(msg_type));
|
||||
}
|
||||
|
||||
gboolean RedChannelClient::pipe_is_empty()
|
||||
bool RedChannelClient::pipe_is_empty() const
|
||||
{
|
||||
return priv->pipe.empty();
|
||||
}
|
||||
|
||||
uint32_t RedChannelClient::get_pipe_size()
|
||||
uint32_t RedChannelClient::get_pipe_size() const
|
||||
{
|
||||
return priv->pipe.size();
|
||||
}
|
||||
|
||||
@ -97,8 +97,8 @@ public:
|
||||
void pipe_add_type(int pipe_item_type);
|
||||
static RedPipeItemPtr new_empty_msg(int msg_type);
|
||||
void pipe_add_empty_msg(int msg_type);
|
||||
gboolean pipe_is_empty();
|
||||
uint32_t get_pipe_size();
|
||||
bool pipe_is_empty() const;
|
||||
uint32_t get_pipe_size() const;
|
||||
Pipe& get_pipe();
|
||||
bool is_mini_header() const;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user