px4_manifest: add function declaration for get base EEPROM mtd

mtd_manifest:Make it C callable
This commit is contained in:
Igor Mišić
2021-12-10 12:18:40 +01:00
committed by David Sidrane
parent 0aa6ae473b
commit 0d414de38c
3 changed files with 15 additions and 2 deletions
@@ -100,6 +100,6 @@ __EXPORT int px4_mtd_config(const px4_mtd_manifest_t *mft_mtd);
* 0 (get !=null) item by type's value is returned at get;
*
************************************************************************************/
__EXPORT int px4_mtd_query(const char *type, const char *val, const char **get = nullptr);
__EXPORT int px4_mtd_query(const char *type, const char *val, const char **get);
__END_DECLS
@@ -88,6 +88,19 @@ __BEGIN_DECLS
__EXPORT const px4_mft_s *board_get_manifest(void);
/************************************************************************************
* Name: board_get_base_eeprom_mtd_manifest
*
* Description:
* A board will provide this function to return the mtd with eeprom manifest
*
* Returned Value:
* pointer to mtd manifest
*
************************************************************************************/
__EXPORT const px4_mtd_manifest_t *board_get_base_eeprom_mtd_manifest(void);
/************************************************************************************
* Name: px4_mft_configure
*
@@ -100,7 +100,7 @@ __EXPORT int px4_mft_query(const px4_mft_s *mft, px4_manifest_types_e type,
if (mft->mfts[m]->type == type)
switch (type) {
case MTD:
return px4_mtd_query(sub, val);
return px4_mtd_query(sub, val, nullptr);
break;
case MFT: