in v2/src/log_context.c [14:30]
uint32_t log_context_get_property_value_pair_count(LOG_CONTEXT_HANDLE log_context)
{
uint32_t result;
if (log_context == NULL)
{
/* Codes_SRS_LOG_CONTEXT_01_020: [ If log_context is NULL, log_context_get_property_value_pair_count shall return 0. ]*/
result = 0;
}
else
{
/* Codes_SRS_LOG_CONTEXT_01_021: [ Otherwise, log_context_get_property_value_pair_count shall return the number of property/value pairs stored by log_context. ]*/
result = log_context->property_value_pair_count;
}
return result;
}