diff options
author | erdgeist <> | 2007-12-03 01:07:41 +0000 |
---|---|---|
committer | erdgeist <> | 2007-12-03 01:07:41 +0000 |
commit | 848a06a706b1661666f1923817ee99e9710a52d4 (patch) | |
tree | 580ea601618396d0fb395dadb748764eed5c4eee /ot_stats.h | |
parent | 9bc0d99c6273e845c98dad9f7fc202b695055c9c (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.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 | ||
25 | void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data ); | ||
19 | size_t return_stats_for_tracker( char *reply, int mode, int format ); | 26 | size_t return_stats_for_tracker( char *reply, int mode, int format ); |
20 | void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data ); | 27 | void stats_init( ); |
28 | void stats_deinit( ); | ||
21 | 29 | ||
22 | #endif | 30 | #endif |