diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-05-13 21:43:13 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-13 21:43:13 +0300 |
| commit | d611c3240863f79029ab48d492659a67f82465d9 (patch) | |
| tree | 8171a65c511849b941fbf492514cb5c89918b4e4 /accel-pppd/include | |
| parent | 5b78328068085a8dc530978fd0b51f5c187a6aff (diff) | |
| parent | e5fe0eaa1fc6b1109db784e818e360159d8dd2ac (diff) | |
| download | accel-ppp-d611c3240863f79029ab48d492659a67f82465d9.tar.gz accel-ppp-d611c3240863f79029ab48d492659a67f82465d9.zip | |
Merge pull request #308 from nuclearcat/stats-rework
stats: improve how we handle statistics in the code
Diffstat (limited to 'accel-pppd/include')
| -rw-r--r-- | accel-pppd/include/ap_session.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/accel-pppd/include/ap_session.h b/accel-pppd/include/ap_session.h index 27471859..a4d3b867 100644 --- a/accel-pppd/include/ap_session.h +++ b/accel-pppd/include/ap_session.h @@ -136,10 +136,14 @@ extern int ap_shutdown; extern int sock_fd; extern int sock6_fd; extern int urandom_fd; -extern struct ap_session_stat ap_session_stat; extern int conf_max_sessions; extern int conf_max_starting; +void ap_session_stat_get(struct ap_session_stat *stat); +unsigned int ap_session_stat_starting(void); +unsigned int ap_session_stat_active(void); +unsigned int ap_session_stat_finishing(void); + void ap_session_init(struct ap_session *ses); void ap_session_set_ifindex(struct ap_session *ses); int ap_session_starting(struct ap_session *ses); |
