diff options
Diffstat (limited to 'ot_stats.h')
| -rw-r--r-- | ot_stats.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/ot_stats.h b/ot_stats.h deleted file mode 100644 index f484765..0000000 --- a/ot_stats.h +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | ||
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | ||
| 3 | |||
| 4 | $id$ */ | ||
| 5 | |||
| 6 | #ifndef OT_STATS_H__ | ||
| 7 | #define OT_STATS_H__ | ||
| 8 | |||
| 9 | #include "trackerlogic.h" | ||
| 10 | |||
| 11 | typedef enum { | ||
| 12 | EVENT_ACCEPT, | ||
| 13 | EVENT_READ, | ||
| 14 | EVENT_CONNECT, /* UDP only */ | ||
| 15 | EVENT_ANNOUNCE, | ||
| 16 | EVENT_COMPLETED, | ||
| 17 | EVENT_RENEW, | ||
| 18 | EVENT_SYNC, | ||
| 19 | EVENT_SCRAPE, | ||
| 20 | EVENT_FULLSCRAPE_REQUEST, | ||
| 21 | EVENT_FULLSCRAPE_REQUEST_GZIP, | ||
| 22 | EVENT_FULLSCRAPE_REQUEST_ZSTD, | ||
| 23 | EVENT_FULLSCRAPE, /* TCP only */ | ||
| 24 | EVENT_FAILED, | ||
| 25 | EVENT_BUCKET_LOCKED, | ||
| 26 | EVENT_WOODPECKER, | ||
| 27 | EVENT_CONNID_MISSMATCH | ||
| 28 | } ot_status_event; | ||
| 29 | |||
| 30 | void stats_counters_register(struct ot_workstruct *ws); | ||
| 31 | void stats_counters_retire(struct ot_workstruct *ws); | ||
| 32 | |||
| 33 | void stats_issue_event(struct ot_workstruct *ws, ot_status_event event, PROTO_FLAG proto, uintptr_t event_data); | ||
| 34 | void stats_deliver(int64_t sock, int tasktype); | ||
| 35 | void stats_cleanup(void); | ||
| 36 | void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int format); | ||
| 37 | void stats_return_tracker_version(char **reply, const char *reply_end); | ||
| 38 | void stats_init(void); | ||
| 39 | void stats_deinit(void); | ||
| 40 | |||
| 41 | #endif | ||
