|
PebbleOS
|
Persisted order of the apps in the launcher menu. More...
Data Structures | |
| struct | AppMenuOrderStorage |
| Launcher app order, as stored on flash. More... | |
Functions | |
| void | app_order_storage_init (void) |
| Initialize the app order storage. | |
| AppMenuOrderStorage * | app_order_read_order (void) |
| Read the stored app order. | |
| void | write_uuid_list_to_file (const Uuid *uuid_list, uint8_t count) |
| Store an app order given as a list of UUIDs. | |
Persisted order of the apps in the launcher menu.
The order is stored in the PFS file lnc_ord with the layout of AppMenuOrderStorage.
| struct AppMenuOrderStorage |
Launcher app order, as stored on flash.
| Data Fields | ||
|---|---|---|
| AppInstallId | id_list[] | Install ids in menu order. |
| uint8_t | list_length | Number of entries in id_list. |
| AppMenuOrderStorage * app_order_read_order | ( | void | ) |
Read the stored app order.
Must be called from the app task. A corrupt file is removed.
| void app_order_storage_init | ( | void | ) |
Initialize the app order storage.
| void write_uuid_list_to_file | ( | const Uuid * | uuid_list, |
| uint8_t | count | ||
| ) |
Store an app order given as a list of UUIDs.
Must be called from the KernelBG task. UUIDs of apps that are not installed are stored as install id 0.
| uuid_list | UUIDs in menu order. |
| count | Number of entries in uuid_list. |