ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
descriptors.c File Reference

Go to the source code of this file.

Functions

const stats_descriptor_t * stats_counter_descriptor (stats_counter_id_t id)
const stats_descriptor_t * stats_gauge_descriptor (stats_gauge_id_t id)
const stats_descriptor_t * stats_duration_descriptor (stats_duration_id_t id)

Function Documentation

◆ stats_counter_descriptor()

const stats_descriptor_t * stats_counter_descriptor ( stats_counter_id_t id)

Static metadata; NULL for an invalid ID. Names are stable, lowercase identifiers.

Definition at line 82 of file descriptors.c.

82 {
83 return (unsigned)id < STATS_COUNTER_COUNT ? &counter_descriptors[id] : NULL;
84}

References STATS_COUNTER_COUNT.

◆ stats_duration_descriptor()

const stats_descriptor_t * stats_duration_descriptor ( stats_duration_id_t id)

Definition at line 90 of file descriptors.c.

90 {
91 return (unsigned)id < STATS_DURATION_COUNT ? &duration_descriptors[id] : NULL;
92}

References STATS_DURATION_COUNT.

◆ stats_gauge_descriptor()

const stats_descriptor_t * stats_gauge_descriptor ( stats_gauge_id_t id)

Definition at line 86 of file descriptors.c.

86 {
87 return (unsigned)id < STATS_GAUGE_COUNT ? &gauge_descriptors[id] : NULL;
88}

References STATS_GAUGE_COUNT.