diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-25 15:42:35 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-03-10 10:59:22 +0100 |
commit | 05b9ab7c25bf252e43037ed0ea002b0aed6f051b (patch) | |
tree | 996bf3a13e114298d450ce10136a6838d9f00006 /src/mm-bearer-list.h | |
parent | 35e20a48c8b16ae744c4ca3082f70e8aa674c2f4 (diff) |
api,modem: new 'MaxActiveMultiplexedBearers' property
In addition to the amount of bearers a user may connect without
multiplexing enabled (the default until now), we now also expose the
maximum number of bearers a user may connect after enabling
multiplexing over one single network interface (if supported).
The method responsible for creating the MMBearerList is now also
subclassable, so that implementations supporting multiplexing can
provide their own version with their own thresholds.
Diffstat (limited to 'src/mm-bearer-list.h')
-rw-r--r-- | src/mm-bearer-list.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mm-bearer-list.h b/src/mm-bearer-list.h index 1d8db726..72fe24ff 100644 --- a/src/mm-bearer-list.h +++ b/src/mm-bearer-list.h @@ -30,8 +30,9 @@ #define MM_IS_BEARER_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_TYPE_BEARER_LIST)) #define MM_BEARER_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_TYPE_BEARER_LIST, MMBearerListClass)) -#define MM_BEARER_LIST_NUM_BEARERS "num-bearers" -#define MM_BEARER_LIST_MAX_ACTIVE_BEARERS "max-active-bearers" +#define MM_BEARER_LIST_NUM_BEARERS "num-bearers" +#define MM_BEARER_LIST_MAX_ACTIVE_BEARERS "max-active-bearers" +#define MM_BEARER_LIST_MAX_ACTIVE_MULTIPLEXED_BEARERS "max-active-multiplexed-bearers" typedef struct _MMBearerList MMBearerList; typedef struct _MMBearerListClass MMBearerListClass; @@ -49,10 +50,12 @@ struct _MMBearerListClass { GType mm_bearer_list_get_type (void); G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMBearerList, g_object_unref) -MMBearerList *mm_bearer_list_new (guint max_active_bearers); +MMBearerList *mm_bearer_list_new (guint max_active_bearers, + guint max_active_multiplexed_bearers); -GStrv mm_bearer_list_get_paths (MMBearerList *self); -guint mm_bearer_list_get_max_active (MMBearerList *self); +GStrv mm_bearer_list_get_paths (MMBearerList *self); +guint mm_bearer_list_get_max_active (MMBearerList *self); +guint mm_bearer_list_get_max_active_multiplexed (MMBearerList *self); gboolean mm_bearer_list_add_bearer (MMBearerList *self, MMBaseBearer *bearer, |