On 2/25/25 03:08, Alex Bennée wrote:
There is very little in loader that is different between builds save
for a tiny user/system mode difference in the plugin_info structure.
Create two new files, user and system to hold mode specific helpers
and move loader into common_ss.
Signed-off-by: Alex Bennée<alex.ben...@linaro.org>
---
plugins/plugin.h | 6 ++++++
plugins/loader.c | 13 ++-----------
plugins/system.c | 24 ++++++++++++++++++++++++
plugins/user.c | 19 +++++++++++++++++++
plugins/meson.build | 7 ++++++-
5 files changed, 57 insertions(+), 12 deletions(-)
create mode 100644 plugins/system.c
create mode 100644 plugins/user.c
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~