PebbleOS v4.47.0-1219-g7c542d7a9
Loading...
Searching...
No Matches
pbl_analytics_storage Struct Reference

Storage. More...

#include <storage.h>

Data Fields

const char * name
 Name.
 
int(* init )(size_t len)
 Initialize the storage.
 
int(* store )(const void *record, size_t len)
 Store a heartbeat record.
 

Detailed Description

Storage.

Field Documentation

◆ init

int(* pbl_analytics_storage::init) (size_t len)

Initialize the storage.

Optional.

Parameters
lenRecord length in bytes, the same for every record.
Returns
0 on success, a negative errno otherwise.

◆ name

const char* pbl_analytics_storage::name

Name.

◆ store

int(* pbl_analytics_storage::store) (const void *record, size_t len)

Store a heartbeat record.

Parameters
recordPacked record.
lenRecord length in bytes, the same for every record.
Returns
0 on success, a negative errno otherwise.

The documentation for this struct was generated from the following file: