summaryrefslogtreecommitdiff
path: root/ot_stats.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.h')
-rw-r--r--ot_stats.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ot_stats.h b/ot_stats.h
new file mode 100644
index 0000000..e4d7c06
--- /dev/null
+++ b/ot_stats.h
@@ -0,0 +1,13 @@
1/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
2 It is considered beerware. Prost. Skol. Cheers or whatever. */
3
4#ifndef __OT_STATS_H__
5#define __OT_STATS_H__
6
7enum { STATS_CONNS, STATS_PEERS, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, SYNC_IN, SYNC_OUT, STATS_FULLSCRAPE };
8
9size_t return_stats_for_tracker( char *reply, int mode );
10size_t return_stats_for_slash24s( char *reply, size_t amount, ot_dword thresh );
11size_t return_memstat_for_tracker( char **reply );
12
13#endif