summaryrefslogtreecommitdiff
path: root/ot_stats.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.h')
-rw-r--r--ot_stats.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ot_stats.h b/ot_stats.h
index 1e603ad..b3ac1dc 100644
--- a/ot_stats.h
+++ b/ot_stats.h
@@ -10,13 +10,21 @@ typedef enum {
10 EVENT_CONNECT, /* UDP only */ 10 EVENT_CONNECT, /* UDP only */
11 EVENT_ANNOUNCE, 11 EVENT_ANNOUNCE,
12 EVENT_SCRAPE, 12 EVENT_SCRAPE,
13 EVENT_FULLSCRAPE_REQUEST,
14 EVENT_FULLSCRAPE_REQUEST_GZIP,
13 EVENT_FULLSCRAPE, /* TCP only */ 15 EVENT_FULLSCRAPE, /* TCP only */
16 EVENT_SYNC_IN_REQUEST,
17 EVENT_SYNC_IN,
18 EVENT_SYNC_OUT_REQUEST,
19 EVENT_SYNC_OUT,
14 EVENT_FAILED_400, 20 EVENT_FAILED_400,
15 EVENT_FAILED_404, 21 EVENT_FAILED_404,
16 EVENT_FAILED_505 22 EVENT_FAILED_505
17} ot_status_event; 23} ot_status_event;
18 24
25void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data );
19size_t return_stats_for_tracker( char *reply, int mode, int format ); 26size_t return_stats_for_tracker( char *reply, int mode, int format );
20void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data ); 27void stats_init( );
28void stats_deinit( );
21 29
22#endif 30#endif