mbox series

[V2,0/6] Cleanup and include restruct

Message ID 20230512123504.160169-1-sbabic@denx.de
Headers show
Series Cleanup and include restruct | expand

Message

Stefano Babic May 12, 2023, 12:34 p.m. UTC
This contains small fixes and reassemble some include files to make them smaller and
easier to be maintained.

Changes since V1:

- fix coverity issue CID 454695

Stefano Babic (6):
  Drop redundant include in artifacts_versions
  Add utility to compare string
  Fix warning due to close() in chain_handler
  Allow to run a SWUpdate function in child process
  util: add min_t and max_t macros
  Reorganize includes to have smaller files

 core/Makefile                      |   1 +
 core/artifacts_versions.c          |   4 +-
 core/cpio_utils.c                  |   1 +
 core/hw-compatibility.c            | 114 +++++++++++++++++++++++++++++
 core/network_thread.c              |   1 +
 core/pctl.c                        |  72 +++++++++++++-----
 core/stream_interface.c            |   1 +
 core/swupdate.c                    |   2 +
 core/util.c                        | 101 +------------------------
 corelib/lua_interface.c            |   2 +
 corelib/verify_signature_mbedtls.c |   1 +
 handlers/archive_handler.c         |   2 +-
 handlers/boot_handler.c            |   3 +-
 handlers/chain_handler.c           |   1 +
 handlers/copy_handler.c            |   2 +-
 handlers/delta_downloader.c        |   1 +
 handlers/delta_handler.c           |   2 +-
 handlers/diskformat_handler.c      |   1 +
 handlers/diskpart_handler.c        |   2 +-
 handlers/dummy_handler.c           |   2 +-
 handlers/flash_hamming1_handler.c  |   2 +-
 handlers/flash_handler.c           |   2 +-
 handlers/raw_handler.c             |   2 +-
 handlers/rdiff_handler.c           |   2 +-
 handlers/readback_handler.c        |   2 +-
 handlers/remote_handler.c          |   6 +-
 handlers/shell_scripthandler.c     |   2 +-
 handlers/ssbl_handler.c            |   2 +-
 handlers/swuforward_handler.c      |   2 +-
 handlers/ubivol_handler.c          |   2 +-
 handlers/ucfw_handler.c            |   2 +-
 handlers/uniqueuuid_handler.c      |   2 +-
 include/chained_handler.h          |   2 +-
 include/globals.h                  |   5 ++
 include/handler.h                  |   1 +
 include/hw-compatibility.h         |  17 +++++
 include/pctl.h                     |   1 +
 include/swupdate.h                 |  74 +------------------
 include/swupdate_image.h           |  77 +++++++++++++++++++
 include/util.h                     |  28 +++++--
 include/versions.h                 |  15 ++++
 parser/parse_external.c            |   1 +
 parser/parser.c                    |   1 +
 43 files changed, 347 insertions(+), 219 deletions(-)
 create mode 100644 core/hw-compatibility.c
 create mode 100644 include/hw-compatibility.h
 create mode 100644 include/swupdate_image.h
 create mode 100644 include/versions.h