summaryrefslogtreecommitdiff
path: root/ot_stats.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.h')
-rw-r--r--ot_stats.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/ot_stats.h b/ot_stats.h
index b3ac1dc..2fb7b4b 100644
--- a/ot_stats.h
+++ b/ot_stats.h
@@ -17,11 +17,20 @@ typedef enum {
17 EVENT_SYNC_IN, 17 EVENT_SYNC_IN,
18 EVENT_SYNC_OUT_REQUEST, 18 EVENT_SYNC_OUT_REQUEST,
19 EVENT_SYNC_OUT, 19 EVENT_SYNC_OUT,
20 EVENT_FAILED_400, 20 EVENT_FAILED
21 EVENT_FAILED_404,
22 EVENT_FAILED_505
23} ot_status_event; 21} ot_status_event;
24 22
23enum {
24 CODE_HTTPERROR_400,
25 CODE_HTTPERROR_400_PARAM,
26 CODE_HTTPERROR_400_COMPACT,
27 CODE_HTTPERROR_403_IP,
28 CODE_HTTPERROR_404,
29 CODE_HTTPERROR_500,
30
31 CODE_HTTPERROR_COUNT
32};
33
25void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data ); 34void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data );
26size_t return_stats_for_tracker( char *reply, int mode, int format ); 35size_t return_stats_for_tracker( char *reply, int mode, int format );
27void stats_init( ); 36void stats_init( );