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) ddsrt_nonnull((2))
Lookup a specific value by name.
This looks up the specified name in the list of keys in
statand returns the address of the key-value pair if present, a null pointer if not. Ifstatis 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 ifstatis NULL ornamedoes not match a key in `stat.