diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-03-27 16:24:48 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-04-10 11:45:03 +0000 |
commit | f325ef59020b0acc33b6d05e96c8df7b58373715 (patch) | |
tree | 820d9d192275a6f95f4b150eb6fefb11d99f7cb5 /libmm-glib/mm-bearer-stats.h | |
parent | b3ec30403fb813cf3902a02350289e769858f10e (diff) |
api,bearer: add 'attempts' and 'failed-attempts' statistics
When we're reusing over and over the same bearer object, we can
provide statistical information about the number of connection
attempts that have been done and how many of them failed.
Diffstat (limited to 'libmm-glib/mm-bearer-stats.h')
-rw-r--r-- | libmm-glib/mm-bearer-stats.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/libmm-glib/mm-bearer-stats.h b/libmm-glib/mm-bearer-stats.h index dceb5aeb..000bd07b 100644 --- a/libmm-glib/mm-bearer-stats.h +++ b/libmm-glib/mm-bearer-stats.h @@ -58,9 +58,11 @@ struct _MMBearerStatsClass { GType mm_bearer_stats_get_type (void); G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMBearerStats, g_object_unref) -guint mm_bearer_stats_get_duration (MMBearerStats *self); -guint64 mm_bearer_stats_get_rx_bytes (MMBearerStats *self); -guint64 mm_bearer_stats_get_tx_bytes (MMBearerStats *self); +guint mm_bearer_stats_get_duration (MMBearerStats *self); +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); /*****************************************************************************/ /* ModemManager/libmm-glib/mmcli specific methods */ @@ -73,9 +75,11 @@ MMBearerStats *mm_bearer_stats_new (void); MMBearerStats *mm_bearer_stats_new_from_dictionary (GVariant *dictionary, GError **error); -void mm_bearer_stats_set_duration (MMBearerStats *self, guint duration); -void mm_bearer_stats_set_rx_bytes (MMBearerStats *self, guint64 rx_bytes); -void mm_bearer_stats_set_tx_bytes (MMBearerStats *self, guint64 tx_bytes); +void mm_bearer_stats_set_duration (MMBearerStats *self, guint duration); +void mm_bearer_stats_set_rx_bytes (MMBearerStats *self, guint64 rx_bytes); +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); GVariant *mm_bearer_stats_get_dictionary (MMBearerStats *self); |