PebbleOS
Loading...
Searching...
No Matches
Functions
app_cache.h File Reference
#include <process_management/app_install_types.h>
#include <system/status_codes.h>
#include <stdbool.h>
#include <stdint.h>

Functions

void app_cache_init (void)
 Initialize the app cache.
 
status_t app_cache_add_entry (AppInstallId app_id, uint32_t total_size)
 Add an entry for a newly installed app.
 
status_t app_cache_remove_entry (AppInstallId app_id)
 Remove an app's entry and delete its binaries.
 
bool app_cache_entry_exists (AppInstallId app_id)
 Check whether an app has an entry in the cache.
 
status_t app_cache_app_launched (AppInstallId app_id)
 Record a launch of an app.
 
status_t app_cache_free_up_space (uint32_t bytes_needed)
 Evict apps until at least bytes_needed bytes of binaries are freed.
 
void app_cache_flush (void)
 Clear the whole cache and delete all cached app binaries.