PebbleOS
Loading...
Searching...
No Matches
Data Structures | Macros
app_glance_db_private.h File Reference
#include <pbl/services/timeline/attribute.h>
#include <pbl/services/timeline/attribute_private.h>
#include <pbl/kernel/compiler.h>

Data Structures

struct  SerializedAppGlanceHeader
 Header of a serialized glance, the value of an app glance record. More...
 
struct  SerializedAppGlanceSliceHeader
 Header of a serialized glance slice. More...
 

Macros

#define APP_GLANCE_DB_CURRENT_VERSION   (1)
 Version of the serialized glance format; records with another version are rejected.
 
#define APP_GLANCE_DB_MAX_SLICES_PER_GLANCE   (8)
 Maximum number of slices stored per glance; extra slices are trimmed on insert.
 
#define APP_GLANCE_DB_MAX_NUM_APP_GLANCES   (50)
 Number of glances the database is sized for.
 
#define APP_GLANCE_DB_ICON_AND_SUBTITLE_SLICE_MIN_SIZE    (sizeof(SerializedAppGlanceSliceHeader) + sizeof(SerializedAttributeHeader) + sizeof(uint32_t))
 Minimum size of an icon and subtitle slice.
 
#define APP_GLANCE_DB_ICON_AND_SUBTITLE_SLICE_MAX_SIZE
 Maximum size of an icon and subtitle slice.
 
#define APP_GLANCE_DB_SLICE_MIN_SIZE   (APP_GLANCE_DB_ICON_AND_SUBTITLE_SLICE_MIN_SIZE)
 Minimum size of any slice.
 
#define APP_GLANCE_DB_SLICE_MAX_SIZE   (APP_GLANCE_DB_ICON_AND_SUBTITLE_SLICE_MAX_SIZE)
 Maximum size of any slice.