Hi: The code ''' * @rule1|@rule2|@rule3 * * The default setting filters out HID (class 0x03) USB devices from auto * connect and auto connects anything else. Note the explicit allow rule at * the end, this is necessary since by default all devices without a * matching filter rule will not auto-connect. * * Filter strings in this format can be easily created with the RHEV-M * USB filter editor tool. */ pspec = g_param_spec_string("auto-connect-filter", "Auto Connect Filter ", "Filter determining which USB devices to auto connect", "0x03,-1,-1,-1,0|-1,-1,-1,-1,1", G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); g_object_class_install_property(gobject_class, PROP_AUTO_CONNECT_FILTER, pspec); '''
"0x03,-1,-1,-1,0|-1,-1,-1,-1,1" , this is the rule to filter the usb device. I am afraid that my USB print may be filterd by it. Is there any detail descriptions about the rules and how can I make the rule according to my preferences? For exmple , I do not want to automount my USB mouse and keyboard, but my USB print. Can anyone give me some suggestions ? Thanks a lot! Regards! 2012/4/3 Hans de Goede <hdego...@redhat.com> > Hi, > > > On 04/03/2012 02:13 PM, Christophe Fergeau wrote: > >> On Tue, Apr 03, 2012 at 07:38:10AM -0400, Marc-André Lureau wrote: >> >>> >>> >>> ----- Mensaje original ----- >>> >>>> This adds 3 new controller messages: >>>> >>>> CONTROLLER_ENABLE_USB (ControllerValue, boolean) >>>> CONTROLLER_ENABLE_USB_**AUTOSHARE (ControllerValue, boolean) >>>> CONTROLLER_USB_FILTER (ControllerData, string) >>>> >>>> This fixes rhbz #807295 >>>> >>> >>> I wonder if it would be worth specifying the USB filter format, or at >>> least reference another documentation for it >>> >> >> Any idea where I can find such a documentation? Hans? >> > > Do: "firefox doc/reference/html/index.html" in your spice-gtk directory, > then go to "Spice USB Manager" and see the "auto-connect-filter" property > > Also see: > http://cgit.freedesktop.org/~**jwrdegoede/usbredir/tree/** > usbredirparser/usbredirfilter.**h<http://cgit.freedesktop.org/~jwrdegoede/usbredir/tree/usbredirparser/usbredirfilter.h> > > Regards, > > Hans > > ______________________________**_________________ > Spice-devel mailing list > Spice-devel@lists.freedesktop.**org <Spice-devel@lists.freedesktop.org> > http://lists.freedesktop.org/**mailman/listinfo/spice-devel<http://lists.freedesktop.org/mailman/listinfo/spice-devel> >
_______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel