PebbleOS
Loading...
Searching...
No Matches
Functions
persist.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <pbl/util/uuid.h>
#include <system/status_codes.h>

Functions

void persist_service_init (void)
 Initialize the persist service.
 
size_t persist_service_get_max_size (void)
 Get the per-app storage capacity.
 
SettingsFile * persist_service_lock_and_get_store (const Uuid *uuid)
 Lock the persist service and get the store of an app.
 
void persist_service_unlock_store (SettingsFile *store)
 Unlock a store obtained with persist_service_lock_and_get_store().
 
void persist_service_client_open (const Uuid *uuid)
 Register a process using the store of an app.
 
void persist_service_client_close (const Uuid *uuid)
 Unregister a process using the store of an app.
 
status_t persist_service_delete_file (const Uuid *uuid)
 Delete the persist file of an app.