diff options
Diffstat (limited to 'ot_stats.h')
| -rw-r--r-- | ot_stats.h | 24 |
1 files changed, 12 insertions, 12 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,8 @@ 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_REQUEST_ZSTD, |
| 23 | EVENT_FULLSCRAPE, /* TCP only */ | ||
| 21 | EVENT_FAILED, | 24 | EVENT_FAILED, |
| 22 | EVENT_BUCKET_LOCKED, | 25 | EVENT_BUCKET_LOCKED, |
| 23 | EVENT_WOODPECKER, | 26 | EVENT_WOODPECKER, |
| @@ -38,15 +41,12 @@ enum { | |||
| 38 | CODE_HTTPERROR_COUNT | 41 | CODE_HTTPERROR_COUNT |
| 39 | }; | 42 | }; |
| 40 | 43 | ||
| 41 | void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event_data ); | 44 | void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_data); |
| 42 | void stats_deliver( int64 sock, int tasktype ); | 45 | void stats_deliver(int64 sock, int tasktype); |
| 43 | void stats_cleanup(); | 46 | void stats_cleanup(void); |
| 44 | size_t return_stats_for_tracker( char *reply, int mode, int format ); | 47 | size_t return_stats_for_tracker(char *reply, int mode, int format); |
| 45 | size_t stats_return_tracker_version( char *reply ); | 48 | size_t stats_return_tracker_version(char *reply); |
| 46 | void stats_init( ); | 49 | void stats_init(void); |
| 47 | void stats_deinit( ); | 50 | void stats_deinit(void); |
| 48 | |||
| 49 | extern const char *g_version_rijndael_c; | ||
| 50 | extern const char *g_version_livesync_c; | ||
| 51 | 51 | ||
| 52 | #endif | 52 | #endif |
