core: Separate main logic to storaged_init/exit function for common usage 88/325488/2 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250612.143602 accepted/tizen/unified/x/20250612.222021
authorSangYoun Kwak <sy.kwak@samsung.com>
Wed, 11 Jun 2025 01:39:58 +0000 (10:39 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Wed, 11 Jun 2025 02:01:48 +0000 (11:01 +0900)
commit28d1e72dadec1f55a41e7df606ad4081ce35b2d8
tree3e4b0846c6b1781f93cf83cd7a115a91f5ee2e81
parent78e79106cea39b217eca51c23d25911ea2920943
core: Separate main logic to storaged_init/exit function for common usage

To make the init/exit sequences of the main function can be used by
other source files such as plugin library, the init/exit logics are
separated as 'storaged_init' and 'storaged_exit' respectively.
Accordingly, main.c file which includes main function is renamed to
storaged.c.

Also, to make them callable, header storaged.h is added.

Change-Id: I7f5512ae13a84095e94b9d56f9970ce09b1f9f0b
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
CMakeLists.txt
src/core/main.c [deleted file]
src/core/storaged.c [new file with mode: 0644]
src/core/storaged.h [new file with mode: 0644]