|
PebbleOS
|
#include <kernel/pebble_tasks.h>#include <flash_region/flash_region.h>#include <process_management/pebble_process_info.h>#include <process_management/app_install_types.h>#include <stdbool.h>#include <stddef.h>Macros | |
| #define | APP_FILE_NAME_SUFFIX "app" |
| App file suffix of app binaries. | |
| #define | WORKER_FILE_NAME_SUFFIX "worker" |
| App file suffix of worker binaries. | |
| #define | MAX_APP_BANKS 8 |
| Number of app banks of the legacy put_bytes protocol. | |
| #define | APP_FILENAME_MAX_LENGTH 32 |
| Size of a buffer able to hold an app or worker binary file name. | |
Enumerations | |
| enum | AppStorageGetAppInfoResult { GET_APP_INFO_SUCCESS , GET_APP_INFO_COULD_NOT_READ_FORMAT , GET_APP_INFO_INCOMPATIBLE_SDK } |
| Result of app_storage_get_process_info(). More... | |
Functions | |
| AppStorageGetAppInfoResult | app_storage_get_process_info (PebbleProcessInfo *app_info, uint8_t *build_id_out, AppInstallId app_id, PebbleTask task) |
| Read and check the metadata of a stored app or worker binary. | |
| void | app_storage_delete_app (AppInstallId id) |
| Remove the app, worker and resource files of an app. | |
| bool | app_storage_app_exists (AppInstallId id) |
| Check whether the app binary and resources of an app are stored. | |
| void | app_storage_get_file_name (char *name, size_t buf_length, AppInstallId app_id, PebbleTask task) |
| Get the file name of an app or worker binary. | |
| bool | app_storage_get_process_load_size (const PebbleProcessInfo *info, size_t *load_size_out) |
| Compute the size of the process image plus its relocation table. | |