diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-03-27 18:01:36 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-04-10 11:45:03 +0000 |
commit | 79daa3099e1f8478b8e17d8065143bca3e38214b (patch) | |
tree | c18029edf3c1bef13fd7975041c9fb7146ec9db4 /libmm-glib/mm-bearer-stats.h | |
parent | f325ef59020b0acc33b6d05e96c8df7b58373715 (diff) |
api,bearer: add 'total-rx-bytes', 'total-tx-bytes' and 'total-duration' stats
Compiling the amount of bytes transferred and received during all
tracked connection attempts, as well as the total duration of all the
connections.
Diffstat (limited to 'libmm-glib/mm-bearer-stats.h')
-rw-r--r-- | libmm-glib/mm-bearer-stats.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmm-glib/mm-bearer-stats.h b/libmm-glib/mm-bearer-stats.h index 000bd07b..bfaba1dd 100644 --- a/libmm-glib/mm-bearer-stats.h +++ b/libmm-glib/mm-bearer-stats.h @@ -63,6 +63,9 @@ guint64 mm_bearer_stats_get_rx_bytes (MMBearerStats *self); guint64 mm_bearer_stats_get_tx_bytes (MMBearerStats *self); guint mm_bearer_stats_get_attempts (MMBearerStats *self); guint mm_bearer_stats_get_failed_attempts (MMBearerStats *self); +guint mm_bearer_stats_get_total_duration (MMBearerStats *self); +guint64 mm_bearer_stats_get_total_rx_bytes (MMBearerStats *self); +guint64 mm_bearer_stats_get_total_tx_bytes (MMBearerStats *self); /*****************************************************************************/ /* ModemManager/libmm-glib/mmcli specific methods */ @@ -80,6 +83,9 @@ void mm_bearer_stats_set_rx_bytes (MMBearerStats *self, guint64 rx_b void mm_bearer_stats_set_tx_bytes (MMBearerStats *self, guint64 tx_bytes); void mm_bearer_stats_set_attempts (MMBearerStats *self, guint attempts); void mm_bearer_stats_set_failed_attempts (MMBearerStats *self, guint failed_attempts); +void mm_bearer_stats_set_total_duration (MMBearerStats *self, guint duration); +void mm_bearer_stats_set_total_rx_bytes (MMBearerStats *self, guint64 rx_bytes); +void mm_bearer_stats_set_total_tx_bytes (MMBearerStats *self, guint64 tx_bytes); GVariant *mm_bearer_stats_get_dictionary (MMBearerStats *self); |