Hi:<div><br></div><div>  The code '''</div><div><div>     * @rule1|@rule2|@rule3</div><div>     *</div><div>     * The default setting filters out HID (class 0x03) USB devices from auto</div><div>     * connect and auto connects anything else. Note the explicit allow rule at</div>
<div>     * the end, this is necessary since by default all devices without a</div><div>     * matching filter rule will not auto-connect.</div><div>     *</div><div>     * Filter strings in this format can be easily created with the RHEV-M</div>
<div>     * USB filter editor tool.</div><div>     */</div><div>    pspec = g_param_spec_string("auto-connect-filter", "Auto Connect Filter ",</div><div>               "Filter determining which USB devices to auto connect",</div>
<div>               "0x03,-1,-1,-1,0|-1,-1,-1,-1,1",</div><div>               G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);</div><div>    g_object_class_install_property(gobject_class, PROP_AUTO_CONNECT_FILTER,</div>
<div>                                    pspec);</div></div><div>'''</div><div><br></div><div> "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 a<span style="font-family:Arial;font-size:12px;white-space:pre-wrap">ccording to my preferences</span>? For exmple , I do not want to automount my USB mouse and keyboard, but my USB print. Can anyone give me some suggestions ? </div>
<div><br></div><div>Thanks a lot! </div><div>Regards! </div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">2012/4/3 Hans de Goede <span dir="ltr"><<a href="mailto:hdegoede@redhat.com" target="_blank">hdegoede@redhat.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><div class="h5"><br>
<br>
On 04/03/2012 02:13 PM, Christophe Fergeau wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Apr 03, 2012 at 07:38:10AM -0400, Marc-André Lureau wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
----- Mensaje original -----<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This adds 3 new controller messages:<br>
<br>
CONTROLLER_ENABLE_USB (ControllerValue, boolean)<br>
CONTROLLER_ENABLE_USB_<u></u>AUTOSHARE (ControllerValue, boolean)<br>
CONTROLLER_USB_FILTER (ControllerData, string)<br>
<br>
This fixes rhbz #807295<br>
</blockquote>
<br>
I wonder if it would be worth specifying the USB filter format, or at least reference another documentation for it<br>
</blockquote>
<br>
Any idea where I can find such a documentation? Hans?<br>
</blockquote>
<br></div></div>
Do: "firefox doc/reference/html/index.html" in your spice-gtk directory,<br>
then go to "Spice USB Manager" and see the "auto-connect-filter" property<br>
<br>
Also see:<br>
<a href="http://cgit.freedesktop.org/~jwrdegoede/usbredir/tree/usbredirparser/usbredirfilter.h" target="_blank">http://cgit.freedesktop.org/~<u></u>jwrdegoede/usbredir/tree/<u></u>usbredirparser/usbredirfilter.<u></u>h</a><br>

<br>
Regards,<br>
<br>
Hans<div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org" target="_blank">Spice-devel@lists.freedesktop.<u></u>org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/spice-devel</a><br>
</div></div></blockquote></div><br></div>