The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Structures and functions for statistics. More...
#include <freeradius-devel/util/pair.h>
Go to the source code of this file.
Data Structures | |
struct | fr_stats_entry_t |
Define a statistics mapping between dictionary attribute and a field in an internal structure. More... | |
struct | fr_stats_entry_t.flags |
struct | fr_stats_struct_t |
Define a statistics mapping between a public name and an entire internal structure. More... | |
Macros | |
#define | STATS_ENTRY_TERMINATOR { .attr = NULL } |
Functions | |
int | fr_stats_attr_init (fr_dict_attr_t *parent, fr_stats_struct_t const *stats) |
Define dictionary attributes for a given statistics structure. | |
int | fr_stats_pair_add (fr_pair_t *parent, fr_stats_struct_t const *stats, void const *ctx) |
Add statistics VPs for a particular struct / context. | |
Structures and functions for statistics.
Definition in file stats.h.
struct fr_stats_entry_t |
Define a statistics mapping between dictionary attribute and a field in an internal structure.
Note that the data types used in the internal structure have to match the fr_type_t.
Data Fields | ||
---|---|---|
struct fr_stats_entry_t.flags | flags | |
char const * | name | Attribute name. |
int | number | attribute number, so that numbers are consistent |
size_t | offset | from start of the structure |
fr_type_t | type | data type for this statistics |
struct fr_stats_entry_t.flags |
struct fr_stats_struct_t |
Define a statistics mapping between a public name and an entire internal structure.
Data Fields | ||
---|---|---|
char const * | name | of this structure for public consumption |
fr_stats_entry_t | table[] | of mappings |
int fr_stats_attr_init | ( | fr_dict_attr_t * | parent, |
fr_stats_struct_t const * | stats | ||
) |
int fr_stats_pair_add | ( | fr_pair_t * | parent, |
fr_stats_struct_t const * | stats, | ||
void const * | ctx | ||
) |
Add statistics VPs for a particular struct / context.
parent | structural vp where the children will be added |
stats | structure which maps between fr_dict_attr_t and internal stats structures |
ctx | the internal structure holding the stastics |
Definition at line 66 of file stats.c.