[Spice-devel] [PATCH spice-gtk] Add spice-usbredir-filter alias for spice-usbredir-auto-redirect-filter (v2)
Hans de Goede
hdegoede at redhat.com
Thu Oct 11 01:58:42 PDT 2012
Hi,
On 10/11/2012 10:50 AM, Marc-André Lureau wrote:
>
>
> ----- Mensaje original -----
>> looks good, ack
>>
>> ----- Mensaje original -----
>>> For commandline backward compatibility with older spice-gtk
>>> versions.
>>>
>>> Changes in v2:
>>> -warn about spice-usbredir-filter being deprecated when it gets
>>> used
>>>
>>> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
>>> ---
>>> gtk/spice-option.c | 13 +++++++++++++
>>> 1 file changed, 13 insertions(+)
>>>
>>> diff --git a/gtk/spice-option.c b/gtk/spice-option.c
>>> index 85c9e55..25f78ab 100644
>>> --- a/gtk/spice-option.c
>>> +++ b/gtk/spice-option.c
>>> @@ -102,6 +102,16 @@ static gboolean parse_disable_effects(const
>>> gchar *option_name, const gchar *val
>>> return TRUE;
>>> }
>>>
>>> +static gboolean parse_usbredir_filter(const gchar *option_name,
>>> + const gchar *value,
>>> + gpointer data, GError
>>> **error)
>>> +
>>> +{
>>> + g_warning("--spice-usbredir-filter is deprecated, please use
>>> --spice-usbredir-auto-redirect-filter instead");
>
> with g_free(usbredir_auto_redirect_filter) it would be even better
>
Added and pushed.
Regards,
Hans
More information about the Spice-devel
mailing list