plugin-api: deviced: Elaborate error code 74/312874/1
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 13 Jun 2024 05:56:21 +0000 (14:56 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 17 Jun 2024 04:55:13 +0000 (13:55 +0900)
commit977231a43eabf43de1c21a0610be43ce04404f6e
tree93eedd32a186df5a35575dfad1b4f3a4aad40b63
parentb1df609bb9597e6957d3ca4e3e45f18ee2716442
plugin-api: deviced: Elaborate error code

Plugin api has changed to return negative error value in three ways.
 1. -ENOTSUP
    : Fail to load plugin backend.

 2. -EOPNOTSUPP
    : Successfully loaded plugin backend, but there is no implementation
      of requested interface.

 3. The other negative values
    : Successfully loaded plugin backend, and successfully invoked
      implemented interface, but the implementation itself returned
      a negative value. In this case, it is strongly discouraged
      that implementation returning -ENOTSUP or -EOPNOTSUPP as it
      cannot be distinguished from the above two cases.

Change-Id: I754c06a813c7c4587c07bc285677fdc1a99cbc80
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/plugin-api/deviced/src/syscommon-plugin-deviced-battery.c
src/plugin-api/deviced/src/syscommon-plugin-deviced-display.c