The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
stats.c File Reference

Map internal data structures to statistics. More...

#include <freeradius-devel/util/stats.h>
+ Include dependency graph for stats.c:

Go to the source code of this file.

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. More...
 
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. More...
 

Detailed Description

Map internal data structures to statistics.

Definition in file stats.c.

Function Documentation

◆ fr_stats_attr_init()

int fr_stats_attr_init ( fr_dict_attr_t parent,
fr_stats_struct_t const *  stats 
)

Define dictionary attributes for a given statistics structure.

Parameters
parentthe parent attribute under which statistics are defined
statsthe statistics mapping structure.
Returns
  • <0 on error
  • 0 on success

Definition at line 35 of file stats.c.

+ Here is the call graph for this function:

◆ fr_stats_pair_add()

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.

Parameters
parentstructural vp where the children will be added
statsstructure which maps between fr_dict_attr_t and internal stats structures
ctxthe internal structure holding the stastics
Returns
  • <0 on error
  • 0 on success

Definition at line 66 of file stats.c.

+ Here is the call graph for this function: