Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <44DB45DD.3050900@palmsource.com> References: <44859045.7090208@palmsource.com> <1150263854.5359.1.camel@aeonflux.holtmann.net> <44969FA3.7030805@palmsource.com> <1151325308.7694.16.camel@localhost> <44D8AC0E.1080308@palmsource.com> <1155162001.4492.19.camel@aeonflux.holtmann.net> <44DB45DD.3050900@palmsource.com> Date: Thu, 10 Aug 2006 21:02:34 +0200 Message-Id: <1155236554.4492.41.camel@aeonflux.holtmann.net> Mime-Version: 1.0 Subject: Re: [Bluez-devel] [PATCH] Minor classes support Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Frederic, > >>We found a bug in DBus function GetRemoteMinorClass when major class is > >>"imaging". In this case, the minor class can be a combo of minor values > >>(minor part of the class is not an "index" in a table but a "field of > >>bit", e.g. "scanner printer"). > >>The patch attached returns the first matching value. It may be useful to > >>change this API to allow it to return multiple values. > > > >I applied the patch to the CVS. We might need some more defined minor > >class strings in the documentation. Feel free to propose something, but > >actually I prefer not to return more than one value or a list of > >strings. This API is supposed to be simple. > > > Personnally, I think that returning a list of strings for minor class > can be the best way (for class of device with minor and subminor like > peripheral (i.e. "keyboard" "card reader"), or class that can have > multiple values for minor like imaging(i.e. "scanner" "printer")). If > you are okay with this I can try to work on a patch. > > Regarding documentation in CVS (dbus-api.txt), only subminor for > peripheral seems to be missing. Am I right ? the class stuff is messed up and I personally think that we might should not support all of their weird things. If we can decode it in a sane and simple way, then we should return an error. In this case the raw three bytes class values can used and the application has to implement its own decoder. Regards Marcel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel