summaryrefslogtreecommitdiff
path: root/ot_stats.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.h')
-rw-r--r--ot_stats.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/ot_stats.h b/ot_stats.h
index ed60f68..a354c19 100644
--- a/ot_stats.h
+++ b/ot_stats.h
@@ -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
9typedef enum { 11typedef 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
41void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event_data ); 43void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_data);
42void stats_deliver( int64 sock, int tasktype ); 44void stats_deliver(int64 sock, int tasktype);
43void stats_cleanup( void ); 45void stats_cleanup(void);
44size_t return_stats_for_tracker( char *reply, int mode, int format ); 46size_t return_stats_for_tracker(char *reply, int mode, int format);
45size_t stats_return_tracker_version( char *reply ); 47size_t stats_return_tracker_version(char *reply);
46void stats_init( void ); 48void stats_init(void);
47void stats_deinit( void ); 49void stats_deinit(void);
48 50
49extern const char *g_version_rijndael_c; 51extern const char *g_version_rijndael_c;
50extern const char *g_version_livesync_c; 52extern const char *g_version_livesync_c;