modlib:move modlib_findsection to common headfile
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
a3f3918198
commit
434442d707
2 changed files with 19 additions and 19 deletions
|
@ -455,6 +455,25 @@ int modlib_undepend(FAR struct module_s *importer);
|
|||
int modlib_read(FAR struct mod_loadinfo_s *loadinfo, FAR uint8_t *buffer,
|
||||
size_t readsize, off_t offset);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: modlib_findsection
|
||||
*
|
||||
* Description:
|
||||
* A section by its name.
|
||||
*
|
||||
* Input Parameters:
|
||||
* loadinfo - Load state information
|
||||
* sectname - Name of the section to find
|
||||
*
|
||||
* Returned Value:
|
||||
* On success, the index to the section is returned; A negated errno value
|
||||
* is returned on failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int modlib_findsection(FAR struct mod_loadinfo_s *loadinfo,
|
||||
FAR const char *sectname);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: modlib_registry_lock
|
||||
*
|
||||
|
|
|
@ -194,25 +194,6 @@ int modlib_loadhdrs(FAR struct mod_loadinfo_s *loadinfo);
|
|||
int modlib_sectname(FAR struct mod_loadinfo_s *loadinfo,
|
||||
FAR const Elf_Shdr *shdr);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: modlib_findsection
|
||||
*
|
||||
* Description:
|
||||
* A section by its name.
|
||||
*
|
||||
* Input Parameters:
|
||||
* loadinfo - Load state information
|
||||
* sectname - Name of the section to find
|
||||
*
|
||||
* Returned Value:
|
||||
* On success, the index to the section is returned; A negated errno value
|
||||
* is returned on failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int modlib_findsection(FAR struct mod_loadinfo_s *loadinfo,
|
||||
FAR const char *sectname);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: modlib_allocbuffer
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue