diff options
author | erdgeist <> | 2007-11-06 11:58:32 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-06 11:58:32 +0000 |
commit | 8900cc0dd980cb08a0af957a1d0dd849bf3c2ac6 (patch) | |
tree | 70aeed1dbaceea343e6ebd000d46df025bae21fc /ot_stats.h | |
parent | 5749f1d8fe80cbb84d66a265bcf9bafe159985ab (diff) |
No one can get access to buckets now without locking them. Also split up the trackerlogic.c-monster in functional sub-units. HEADS UP: this code is untested and not considered stable.
Diffstat (limited to 'ot_stats.h')
-rw-r--r-- | ot_stats.h | 13 |
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 | |||
7 | enum { STATS_CONNS, STATS_PEERS, STATS_TOP5, STATS_DMEM, STATS_TCP, STATS_UDP, STATS_SLASH24S, SYNC_IN, SYNC_OUT, STATS_FULLSCRAPE }; | ||
8 | |||
9 | size_t return_stats_for_tracker( char *reply, int mode ); | ||
10 | size_t return_stats_for_slash24s( char *reply, size_t amount, ot_dword thresh ); | ||
11 | size_t return_memstat_for_tracker( char **reply ); | ||
12 | |||
13 | #endif | ||