summaryrefslogtreecommitdiff
path: root/ot_stats.h
diff options
context:
space:
mode:
authorerdgeist <>2007-12-03 01:07:41 +0000
committererdgeist <>2007-12-03 01:07:41 +0000
commit848a06a706b1661666f1923817ee99e9710a52d4 (patch)
tree580ea601618396d0fb395dadb748764eed5c4eee /ot_stats.h
parent9bc0d99c6273e845c98dad9f7fc202b695055c9c (diff)
Drop ot_{byte,word,dword} and use uint{8,16,32}_t, also simplify includes
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