FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kHealthLog_RegisterStat ( kHealthLog  log,
kHealthId  id,
k32u  instance,
const kChar name,
kBool  shouldRestore,
k64s  value 
)

Adds or updates metadata for the specified stat.

This method must be called to notify the log about the existence of each health stat. It is only necessary to call this method once for each id-instance pair. However, this method can be called again at any time to update the health stat name.

This method is intended to be fast; no file I/O is performed.

This method is thread-safe.

Parameters
logHealth log object.
idHealth stat id.
instanceHealth stat instance.
nameHealth stat name.
shouldRestoreShould the previous value be reloaded as current value at construction time?
valueInitial value.
Returns
Operation status.