Skip to content

More btd_error_* patches

Gustavo F. Padovan linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Add btd_error_no_such_adapter()src/device.c src/error.c src/error.h +1 more+10 -160 replies
2/10src: use btd_error_invalid_args()src/device.c+1 -10 replies
3/10Add btd_error_failed()src/error.c src/error.h+7 -00 replies
4/10plugins: use btd_error_failed()plugins/service.c+4 -180 replies
5/10attrib: use btd_error_failed()attrib/client.c+2 -80 replies
6/10network: use btd_error_failed()network/connection.c network/server.c+5 -380 replies
7/10input: use btd_error_failed()input/device.c+8 -230 replies
8/10audio: use btd_error_failed()audio/control.c audio/device.c audio/gateway.c +4 more+24 -500 replies
9/10serial: use btd_error_failed()serial/port.c serial/proxy.c+11 -170 replies
10/10src: use btd_error_failed()src/adapter.c src/device.c+25 -560 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] More btd_error_* patches

Hi,

This patch set adds a new error function btd_error_failed(), which has a str parameter to enable a more accurate error report in the case the usual btd_error_* does not fit.

After this patch set there will 10 occurrences of g_dbus_create_error() inside bluez code (not counting health/ here)

Please review!

Gustavo F. Padovan (10):
Add btd_error_no_such_adapter()
src: use btd_error_invalid_args()
Add btd_error_failed()
plugins: use btd_error_failed()
attrib: use btd_error_failed()
network: use btd_error_failed()
input: use btd_error_failed()
audio: use btd_error_failed()
serial: use btd_error_failed()
src: use btd_error_failed()

 attrib/client.c      |   10 +-------
 audio/control.c      |    6 +---
 audio/device.c       |   14 ++++--------
 audio/gateway.c      |   11 ++++-----
 audio/headset.c      |   18 ++++------------
 audio/sink.c         |    9 ++-----
 audio/source.c       |    9 ++-----
 audio/transport.c    |    7 +-----
 input/device.c       |   31 +++++++----------------------
 network/connection.c |   30 +--------------------------
 network/server.c     |   13 ++---------
 plugins/service.c    |   22 +++-----------------
 serial/port.c        |   20 ++++++++----------
 serial/proxy.c       |    8 +-----
 src/adapter.c        |   37 ++++++++++++-----------------------
 src/device.c         |   52 ++++++++++++-------------------------------------
 src/error.c          |   12 +++++++++++
 src/error.h          |    2 +
 src/manager.c        |   13 ++---------
 19 files changed, 97 insertions(+), 227 deletions(-)
Signature · 1 line
1.7.3.2