diff options
Diffstat (limited to 'ot_stats.h')
-rw-r--r-- | ot_stats.h | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -6,10 +6,12 @@ | |||
6 | #ifndef OT_STATS_H__ | 6 | #ifndef OT_STATS_H__ |
7 | #define OT_STATS_H__ | 7 | #define OT_STATS_H__ |
8 | 8 | ||
9 | #include "trackerlogic.h" | ||
10 | |||
9 | typedef enum { | 11 | typedef enum { |
10 | EVENT_ACCEPT, | 12 | EVENT_ACCEPT, |
11 | EVENT_READ, | 13 | EVENT_READ, |
12 | EVENT_CONNECT, /* UDP only */ | 14 | EVENT_CONNECT, /* UDP only */ |
13 | EVENT_ANNOUNCE, | 15 | EVENT_ANNOUNCE, |
14 | EVENT_COMPLETED, | 16 | EVENT_COMPLETED, |
15 | EVENT_RENEW, | 17 | EVENT_RENEW, |
@@ -17,7 +19,7 @@ typedef enum { | |||
17 | EVENT_SCRAPE, | 19 | EVENT_SCRAPE, |
18 | EVENT_FULLSCRAPE_REQUEST, | 20 | EVENT_FULLSCRAPE_REQUEST, |
19 | EVENT_FULLSCRAPE_REQUEST_GZIP, | 21 | EVENT_FULLSCRAPE_REQUEST_GZIP, |
20 | EVENT_FULLSCRAPE, /* TCP only */ | 22 | EVENT_FULLSCRAPE, /* TCP only */ |
21 | EVENT_FAILED, | 23 | EVENT_FAILED, |
22 | EVENT_BUCKET_LOCKED, | 24 | EVENT_BUCKET_LOCKED, |
23 | EVENT_WOODPECKER, | 25 | EVENT_WOODPECKER, |
@@ -38,13 +40,13 @@ enum { | |||
38 | CODE_HTTPERROR_COUNT | 40 | CODE_HTTPERROR_COUNT |
39 | }; | 41 | }; |
40 | 42 | ||
41 | void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event_data ); | 43 | void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_data); |
42 | void stats_deliver( int64 sock, int tasktype ); | 44 | void stats_deliver(int64 sock, int tasktype); |
43 | void stats_cleanup( void ); | 45 | void stats_cleanup(void); |
44 | size_t return_stats_for_tracker( char *reply, int mode, int format ); | 46 | size_t return_stats_for_tracker(char *reply, int mode, int format); |
45 | size_t stats_return_tracker_version( char *reply ); | 47 | size_t stats_return_tracker_version(char *reply); |
46 | void stats_init( void ); | 48 | void stats_init(void); |
47 | void stats_deinit( void ); | 49 | void stats_deinit(void); |
48 | 50 | ||
49 | extern const char *g_version_rijndael_c; | 51 | extern const char *g_version_rijndael_c; |
50 | extern const char *g_version_livesync_c; | 52 | extern const char *g_version_livesync_c; |