[Spice-devel] [PATCH] AgentMsgFilter: use typedef
Frediano Ziglio
fziglio at redhat.com
Tue May 24 16:40:47 UTC 2016
>
> Instead of using the full 'struct AgentMsgFilter', use the typedef name
> ---
> server/agent-msg-filter.c | 6 +++---
> server/agent-msg-filter.h | 6 +++---
> 2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/server/agent-msg-filter.c b/server/agent-msg-filter.c
> index 25edfd9..3e5b225 100644
> --- a/server/agent-msg-filter.c
> +++ b/server/agent-msg-filter.c
> @@ -28,7 +28,7 @@
> #include "reds.h"
> #include "red-qxl.h"
>
> -void agent_msg_filter_config(struct AgentMsgFilter *filter,
> +void agent_msg_filter_config(AgentMsgFilter *filter,
> gboolean copy_paste, gboolean file_xfer,
> gboolean use_client_monitors_config)
> {
> @@ -37,7 +37,7 @@ void agent_msg_filter_config(struct AgentMsgFilter *filter,
> filter->use_client_monitors_config = use_client_monitors_config;
> }
>
> -void agent_msg_filter_init(struct AgentMsgFilter *filter,
> +void agent_msg_filter_init(AgentMsgFilter *filter,
> gboolean copy_paste, gboolean file_xfer,
> gboolean use_client_monitors_config,
> int discard_all)
> @@ -48,7 +48,7 @@ void agent_msg_filter_init(struct AgentMsgFilter *filter,
> filter->discard_all = discard_all;
> }
>
> -int agent_msg_filter_process_data(struct AgentMsgFilter *filter,
> +int agent_msg_filter_process_data(AgentMsgFilter *filter,
> uint8_t *data, uint32_t len)
> {
> struct VDAgentMessage msg_header;
> diff --git a/server/agent-msg-filter.h b/server/agent-msg-filter.h
> index 1835ef9..e7eef1a 100644
> --- a/server/agent-msg-filter.h
> +++ b/server/agent-msg-filter.h
> @@ -42,14 +42,14 @@ typedef struct AgentMsgFilter {
> gboolean discard_all;
> } AgentMsgFilter;
>
> -void agent_msg_filter_init(struct AgentMsgFilter *filter,
> +void agent_msg_filter_init(AgentMsgFilter *filter,
> gboolean copy_paste, gboolean file_xfer,
> gboolean use_client_monitors_config,
> gboolean discard_all);
> -void agent_msg_filter_config(struct AgentMsgFilter *filter,
> +void agent_msg_filter_config(AgentMsgFilter *filter,
> gboolean copy_paste, gboolean file_xfer,
> gboolean use_client_monitors_config);
> -int agent_msg_filter_process_data(struct AgentMsgFilter *filter,
> +int agent_msg_filter_process_data(AgentMsgFilter *filter,
> uint8_t *data, uint32_t len);
>
> #endif
Acked-by: Frediano Ziglio <fziglio at redhat.com>
Frediano
More information about the Spice-devel
mailing list