diff options
author | Frederic Martinsons <frederic.martinsons@sigfox.com> | 2021-10-15 08:27:42 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-12-13 09:35:28 +0000 |
commit | 9fc3d15d29678585b2a120f944ec765dcbbf3293 (patch) | |
tree | dc5f91a04b9b39d974b0bab1dbd07296f4d54ac3 /libmm-glib/mm-bearer.c | |
parent | 07c4e95ac96e6a810a1fbfdc3277b8d11aab34dd (diff) |
api, dbus, bearer: Add ReloadStatsSupported bearer dbus property
This property means that the current bearer can reload stats and read TX
and RX bytes transmitted.
The property is initiliazed as soon as the bearer is connected.
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
Diffstat (limited to 'libmm-glib/mm-bearer.c')
-rw-r--r-- | libmm-glib/mm-bearer.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libmm-glib/mm-bearer.c b/libmm-glib/mm-bearer.c index 52ec6533..ddcfa053 100644 --- a/libmm-glib/mm-bearer.c +++ b/libmm-glib/mm-bearer.c @@ -172,6 +172,27 @@ mm_bearer_get_connected (MMBearer *self) /*****************************************************************************/ /** + * mm_bearer_get_reload_stats_supported: + * @self: A #MMBearer. + * + * Checks whether or not the #MMBearer supporting stats reload (to have + * RX and TX bytes of the ongoing connection). + * + * Returns: %TRUE if the #MMBearer supports these stats, #FALSE otherwise. + * + * Since: 1.20 + */ +gboolean +mm_bearer_get_reload_stats_supported (MMBearer *self) +{ + g_return_val_if_fail (MM_IS_BEARER (self), FALSE); + + return mm_gdbus_bearer_get_reload_stats_supported (MM_GDBUS_BEARER (self)); +} + +/*****************************************************************************/ + +/** * mm_bearer_get_suspended: * @self: A #MMBearer. * |