Skip to content

service: Add and Leverage 'clear_error'

Grant Erickson connman 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2service: Add and leverage 'clear_error'.src/service.c+13 -60 replies
2/2service: Document '{clear,set}_error'.src/service.c+37 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] service: Add and Leverage 'clear_error'

There are a suffient number of instantiations of the following implementation pattern:

    set_error(service, CONNMAN_SERVICE_ERROR_UNKNOWN);

to clear or reset the "Error" service property where it makes sense to embody this in a single function.

This introduces and leverages the 'clear_error' function to embody this pattern.

Grant Erickson (2):
service: Add and leverage 'clear_error'.
service: Document '{clear,set}_error'.

 src/service.c | 56 +++++++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 50 insertions(+), 6 deletions(-)
Signature · 1 line
2.42.0