Re: [PATCH spice-gtk] Add spice-usbredir-filter alias for spice-usbredir-auto-redirect-filter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

I'd go with a G_OPTION_ARG_CALLBACK option in order to be able to display
a g_warning("This option is deprecated and has been superseded by
--spice-usbredir-...);

Christophe

On Thu, Oct 11, 2012 at 10:01:00AM +0200, Hans de Goede wrote:
> For commandline backward compatibility with older spice-gtk versions.
> 
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> ---
>  gtk/spice-option.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/gtk/spice-option.c b/gtk/spice-option.c
> index 85c9e55..6ee9b07 100644
> --- a/gtk/spice-option.c
> +++ b/gtk/spice-option.c
> @@ -132,6 +132,9 @@ GOptionGroup* spice_get_option_group(void)
>            N_("Path to the local certificate database to use for software smartcard certificates"), N_("<certificate-db>") },
>          { "spice-disable-usbredir", '\0', 0, G_OPTION_ARG_NONE, &disable_usbredir,
>            N_("Disable USB redirection support"), NULL },
> +        /* Backward compats version of spice-usbredir-auto-redirect-filter */
> +        { "spice-usbredir-filter", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &usbredir_auto_redirect_filter,
> +          NULL, NULL },
>          { "spice-usbredir-auto-redirect-filter", '\0', 0, G_OPTION_ARG_STRING, &usbredir_auto_redirect_filter,
>            N_("Filter selecting USB devices to be auto-redirected when plugged in"), N_("<filter-string>") },
>          { "spice-usbredir-redirect-on-connect", '\0', 0, G_OPTION_ARG_STRING, &usbredir_redirect_on_connect,
> -- 
> 1.7.12.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: pgpzXIAwTkINY.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]