libqos/fw_cfg: refactor file directory iteraton to make it more reusable
authorAni Sinha <anisinha@redhat.com>
Mon, 20 Jan 2025 04:38:32 +0000 (10:08 +0530)
committerFabiano Rosas <farosas@suse.de>
Mon, 3 Feb 2025 15:15:49 +0000 (12:15 -0300)
commit453b3f3cdc6326ad75a9dedd6bb21c570e7697ef
tree0a8f2020fdd44c1e08fa9d28c4ed122a1d2164fc
parent6fccaa2fba391815308a746d68f7fa197bc93586
libqos/fw_cfg: refactor file directory iteraton to make it more reusable

fw-cfg file directory iteration code can be used by other functions that may
want to implement fw-cfg file operations. Refactor it into a smaller helper
so that it can be reused.

No functional change.

Signed-off-by: Ani Sinha <anisinha@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20250120043847.954881-2-anisinha@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/libqos/fw_cfg.c