Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <48CBE24E.6080507@free.fr> References: <48CBE24E.6080507@free.fr> Date: Sat, 13 Sep 2008 19:03:44 +0200 Message-Id: <1221325424.6695.45.camel@californication> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Some Audio error handling fixes. 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 Fabien, > While running tests on bluez-utils lately i found a number of big and > little error handling issues. > Attached patchset fixes all of them :-) > > Can anyone have a look to it ? actually the convention is that if it is a return value, then we use a negative error value. If it is a parameter, we use the positive one. So the connection_lost change is wrong (it was wrong before though). Please fix this too. > While reading the latest code, i noticed common/error.{c, h} is gone... > There's a new one in src/, but with only one generic > error handling routine. I have the feeling this is a big step backwards, > as DBUS error names get duplicated into each service > again and again, paving the way for un unmanageable level of error > strings fragmentation :-( What do you guys think ? It is not a big step backwards since we are using libgdbus error functions now and there are more simpler. There is a problem with the strings returned for a specific error, but I don't really thing it is that big of a problem. In the long term we might get btd_error_* or alike functions since then the plugins can use them. However right now every plugin has to handle its own errors. Regards Marcel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel