Loading...
Searching...
No Matches
application_manifest.h File Reference

Flipper application manifest. More...

#include <stdint.h>
#include <stdbool.h>
#include "elf/elf_api_interface.h"

Go to the source code of this file.

Data Structures

struct  FlipperApplicationManifestBase
 
struct  FlipperApplicationManifestV1
 

Macros

#define FAP_MANIFEST_MAGIC   0x52474448
 
#define FAP_MANIFEST_SUPPORTED_VERSION   1
 
#define FAP_MANIFEST_MAX_APP_NAME_LENGTH   32
 
#define FAP_MANIFEST_MAX_ICON_SIZE   32
 

Typedefs

typedef FlipperApplicationManifestV1 FlipperApplicationManifest
 

Functions

bool flipper_application_manifest_is_valid (const FlipperApplicationManifest *manifest)
 Check if manifest is valid.
 
bool flipper_application_manifest_is_too_old (const FlipperApplicationManifest *manifest, const ElfApiInterface *api_interface)
 Check if API Version declared in manifest is older than firmware ELF API interface.
 
bool flipper_application_manifest_is_too_new (const FlipperApplicationManifest *manifest, const ElfApiInterface *api_interface)
 Check if API Version declared in manifest is newer than firmware ELF API interface.
 
bool flipper_application_manifest_is_target_compatible (const FlipperApplicationManifest *manifest)
 Check if application is compatible with current hardware.
 

Detailed Description

Flipper application manifest.

Function Documentation

◆ flipper_application_manifest_is_target_compatible()

bool flipper_application_manifest_is_target_compatible ( const FlipperApplicationManifest * manifest)

Check if application is compatible with current hardware.

Parameters
manifest
Returns
bool

◆ flipper_application_manifest_is_too_new()

bool flipper_application_manifest_is_too_new ( const FlipperApplicationManifest * manifest,
const ElfApiInterface * api_interface )

Check if API Version declared in manifest is newer than firmware ELF API interface.

Parameters
manifestThe manifest
api_interfaceThe api interface
Returns
bool

◆ flipper_application_manifest_is_too_old()

bool flipper_application_manifest_is_too_old ( const FlipperApplicationManifest * manifest,
const ElfApiInterface * api_interface )

Check if API Version declared in manifest is older than firmware ELF API interface.

Parameters
manifestThe manifest
api_interfaceThe api interface
Returns
bool

◆ flipper_application_manifest_is_valid()

bool flipper_application_manifest_is_valid ( const FlipperApplicationManifest * manifest)

Check if manifest is valid.

Parameters
manifest
Returns
bool