diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-25 20:41:28 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-03-10 10:59:22 +0100 |
commit | 73db7f205c3326492648f6ebedb8d07b959a6e55 (patch) | |
tree | fb3def8277962d7124d4bb2a070b0a8160459cae /libmm-glib/mm-bearer.c | |
parent | 05b9ab7c25bf252e43037ed0ea002b0aed6f051b (diff) |
api,bearer: new 'Multiplexed' property
This property will be TRUE if the bearer has the data session
connected through a multiplexed interface.
If the bearer is disconnected, or connected without multiplexing, the
property will report FALSE.
Diffstat (limited to 'libmm-glib/mm-bearer.c')
-rw-r--r-- | libmm-glib/mm-bearer.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libmm-glib/mm-bearer.c b/libmm-glib/mm-bearer.c index d5812e22..31668281 100644 --- a/libmm-glib/mm-bearer.c +++ b/libmm-glib/mm-bearer.c @@ -203,6 +203,28 @@ mm_bearer_get_suspended (MMBearer *self) /*****************************************************************************/ /** + * mm_bearer_get_multiplexed: + * @self: A #MMBearer. + * + * Checks whether or not the #MMBearer is connected through a multiplexed + * network likn. + * + * Returns: %TRUE if packet data service is connected via a multiplexed network + * link in the #MMBearer, #FALSE otherwise. + * + * Since: 1.18 + */ +gboolean +mm_bearer_get_multiplexed (MMBearer *self) +{ + g_return_val_if_fail (MM_IS_BEARER (self), FALSE); + + return mm_gdbus_bearer_get_multiplexed (MM_GDBUS_BEARER (self)); +} + +/*****************************************************************************/ + +/** * mm_bearer_get_ip_timeout: * @self: A #MMBearer. * |