mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-25 04:03:07 +00:00
e6d22ed147
* fap-loader: load all code and data sections * fap-loader: relocate all code and data sections * fap-loader: remove old elf loader * fap-loader: new jmp call relocation * openocd: resume on detach * fap-loader: trampoline for big jumps * fap-loader: rename cache * fap-loader: init_array support * fap-loader: untangled flipper_application into separate entities * fap-loader: fix debug * fap-loader: optimize section container * fap-loader: optimize key for section container * fap-loader: disable debug log * documentation * F7: bump api symbols version * Lib: cleanup elf_file.c Co-authored-by: あく <alleteam@gmail.com>
21 lines
672 B
C
21 lines
672 B
C
#include "application_manifest.h"
|
|
|
|
bool flipper_application_manifest_is_valid(const FlipperApplicationManifest* manifest) {
|
|
if((manifest->base.manifest_magic != FAP_MANIFEST_MAGIC) ||
|
|
(manifest->base.manifest_version != FAP_MANIFEST_SUPPORTED_VERSION)) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool flipper_application_manifest_is_compatible(
|
|
const FlipperApplicationManifest* manifest,
|
|
const ElfApiInterface* api_interface) {
|
|
if(manifest->base.api_version.major != api_interface->api_version_major /* ||
|
|
manifest->base.api_version.minor > app->api_interface->api_version_minor */) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|