GNUnet  0.10.x
Data Structures | Macros
statistics.h File Reference
#include "gnunet_common.h"
Include dependency graph for statistics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GNUNET_STATISTICS_ReplyMessage
 Statistics message. More...
 
struct  GNUNET_STATISTICS_SetMessage
 Message to set a statistic. More...
 
struct  GNUNET_STATISTICS_WatchValueMessage
 Message transmitted if a watched value changes. More...
 

Macros

#define GNUNET_STATISTICS_PERSIST_BIT   ((uint32_t) (1LLU<<31))
 Flag for the struct GNUNET_STATISTICS_ReplyMessage UID only. More...
 
#define GNUNET_STATISTICS_SETFLAG_ABSOLUTE   0
 The value being set is an absolute change. More...
 
#define GNUNET_STATISTICS_SETFLAG_RELATIVE   1
 The value being set is a relative change. More...
 
#define GNUNET_STATISTICS_SETFLAG_PERSISTENT   2
 The value being set is to be persistent (note that this bit can be combined with GNUNET_STATISTICS_SETFLAG_RELATIVE). More...
 

Detailed Description

Author
Christian Grothoff

Definition in file statistics.h.

Macro Definition Documentation

◆ GNUNET_STATISTICS_PERSIST_BIT

#define GNUNET_STATISTICS_PERSIST_BIT   ((uint32_t) (1LLU<<31))

Flag for the struct GNUNET_STATISTICS_ReplyMessage UID only.

Note that other messages use GNUNET_STATISTICS_SETFLAG_PERSISTENT.

Definition at line 66 of file statistics.h.

Referenced by handle_statistics_value(), handle_statistics_watch_value(), and transmit().

◆ GNUNET_STATISTICS_SETFLAG_ABSOLUTE

#define GNUNET_STATISTICS_SETFLAG_ABSOLUTE   0

The value being set is an absolute change.

Definition at line 71 of file statistics.h.

◆ GNUNET_STATISTICS_SETFLAG_RELATIVE

#define GNUNET_STATISTICS_SETFLAG_RELATIVE   1

The value being set is a relative change.

Definition at line 76 of file statistics.h.

Referenced by handle_set(), and transmit_set().

◆ GNUNET_STATISTICS_SETFLAG_PERSISTENT

#define GNUNET_STATISTICS_SETFLAG_PERSISTENT   2

The value being set is to be persistent (note that this bit can be combined with GNUNET_STATISTICS_SETFLAG_RELATIVE).

This value must not be used for the uid member of struct GNUNET_STATISTICS_ReplyMessage!

Definition at line 84 of file statistics.h.

Referenced by handle_set(), notify_change(), save(), and transmit_set().