Function dds_lookup_statistic¶
Defined in File dds_statistics.h
Function Documentation¶
-
const struct dds_stat_keyvalue *dds_lookup_statistic(const struct dds_statistics *stat, const char *name)¶
Lookup a specific value by name.
This looks up the specified name in the list of keys in
stat
and returns the address of the key-value pair if present, a null pointer if not. Ifstat
is a null pointer, it returns a null pointer.- Parameters
stat – [in] statistics object to lookup a name in (or NULL)
name – [in] name to look for
- Returns
The address of the key-value pair inside
stat
, or NULL ifstat
is NULL orname
does not match a key in `stat.