PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
app_file.h File Reference
#include <stddef.h>
#include <process_management/app_install_types.h>

Macros

#define APP_FILE_NAME_PREFIX_LENGTH   (10)
 Length of the @XXXXXXXX/ prefix; the suffix starts at this offset.
 
#define APP_FILE_DIR   "/"
 Directory app files are stored in.
 

Functions

void app_file_name_make (char *restrict buffer, size_t buffer_len, AppInstallId app_id, const char *restrict suffix, size_t suffix_len)
 Make an app file name.
 
void app_file_path_make (char *restrict buffer, size_t buffer_len, AppInstallId app_id, const char *restrict suffix, size_t suffix_len)
 Make the path of an app file: the app file name in APP_FILE_DIR.
 
bool is_app_file_name (const char *filename)
 Check whether a file name is an app file name.
 
bool is_app_resource_file_name (const char *filename)
 Check whether a file name is an app resource file name (suffix "res").
 
AppInstallId app_file_parse_app_id (const char *filename)
 Get the app install id from an app file name, without validating it.
 
AppInstallId app_file_get_app_id (const char *filename)
 Get the app install id from a file name.