PebbleOS
Loading...
Searching...
No Matches
Macros | Functions
app_file.h File Reference
#include <stdbool.h>
#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.
 

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.
 
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.