PebbleOS
Loading...
Searching...
No Matches
Data Structures | Functions
App menu order storage

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.
 

Detailed Description

Persisted order of the apps in the launcher menu.

The order is stored in the PFS file lnc_ord with the layout of AppMenuOrderStorage.


Data Structure Documentation

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

Function Documentation

◆ app_order_read_order()

AppMenuOrderStorage * app_order_read_order ( void  )

Read the stored app order.

Must be called from the app task. A corrupt file is removed.

Returns
Order allocated on the app heap, to be freed by the caller with app_free(), or NULL if there is no valid stored order or allocation failed.

◆ app_order_storage_init()

void app_order_storage_init ( void  )

Initialize the app order storage.

◆ write_uuid_list_to_file()

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.

Parameters
uuid_listUUIDs in menu order.
countNumber of entries in uuid_list.