Skip to content

Commit

Permalink
lib_manager: Rename lib_manager_get_library_module_desc function
Browse files Browse the repository at this point in the history
The lib_manager_get_library_module_desc function was renamed to
lib_manager_get_library_manifest, which better describes what it do.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
  • Loading branch information
softwarecki committed Mar 22, 2024
1 parent ca42dff commit 94b9976
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/include/sof/lib_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ int lib_manager_register_module(const uint32_t component_id);
*
* Gets firmware manifest descriptor using module_id to locate it
*/
struct sof_man_fw_desc *lib_manager_get_library_module_desc(int module_id);
const struct sof_man_fw_desc *lib_manager_get_library_manifest(int module_id);

struct processing_module;
/*
Expand Down
6 changes: 3 additions & 3 deletions src/library_manager/lib_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static int lib_manager_unload_module(const struct sof_man_module *const mod)
*/
static int lib_manager_load_libcode_modules(const uint32_t module_id)
{
const struct sof_man_fw_desc *const desc = lib_manager_get_library_module_desc(module_id);
const struct sof_man_fw_desc *const desc = lib_manager_get_library_manifest(module_id);
struct ext_library *const ext_lib = ext_lib_get();
const struct sof_man_module *module_entry = (struct sof_man_module *)
((char *)desc + SOF_MAN_MODULE_OFFSET(0));
Expand Down Expand Up @@ -252,7 +252,7 @@ static int lib_manager_load_libcode_modules(const uint32_t module_id)
*/
static int lib_manager_unload_libcode_modules(const uint32_t module_id)
{
const struct sof_man_fw_desc *const desc = lib_manager_get_library_module_desc(module_id);
const struct sof_man_fw_desc *const desc = lib_manager_get_library_manifest(module_id);
const struct sof_man_module *module_entry = (struct sof_man_module *)
((char *)desc + SOF_MAN_MODULE_OFFSET(0));
struct ext_library *const ext_lib = ext_lib_get();
Expand Down Expand Up @@ -450,7 +450,7 @@ void lib_manager_init(void)
sof->ext_library = &loader_ext_lib;
}

struct sof_man_fw_desc *lib_manager_get_library_module_desc(int module_id)
const struct sof_man_fw_desc *lib_manager_get_library_manifest(int module_id)
{
struct lib_manager_mod_ctx *ctx = lib_manager_get_mod_ctx(module_id);
uint8_t *buffptr = ctx ? ctx->base_addr : NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/library_manager/llext_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ uintptr_t llext_manager_allocate_module(struct processing_module *proc,
tr_dbg(&lib_manager_tr, "llext_manager_allocate_module(): mod_id: %#x",
ipc_config->id);

desc = lib_manager_get_library_module_desc(module_id);
desc = (struct sof_man_fw_desc *)lib_manager_get_library_manifest(module_id);
if (!ctx || !desc) {
tr_err(&lib_manager_tr,
"llext_manager_allocate_module(): failed to get module descriptor");
Expand Down

0 comments on commit 94b9976

Please sign in to comment.