diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-10-22 11:52:46 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-11-09 18:41:57 +0100 |
commit | 6defec2faed9e796584dd9b519ab777f9019d31b (patch) | |
tree | f2dfcff56ad44d347d413e741a995752604c217a /src/mm-broadband-modem-mbim.h | |
parent | ca0dbd07288d67c91e7018819cdd4aa36d57cf2a (diff) |
broadband-modem-mbim: peeking MBIM port only in MBIM modems
Move the logic out of the base modem, and make it applicable only for
MBIM modems.
Diffstat (limited to 'src/mm-broadband-modem-mbim.h')
-rw-r--r-- | src/mm-broadband-modem-mbim.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/mm-broadband-modem-mbim.h b/src/mm-broadband-modem-mbim.h index 711babc8..457c86c7 100644 --- a/src/mm-broadband-modem-mbim.h +++ b/src/mm-broadband-modem-mbim.h @@ -41,10 +41,19 @@ struct _MMBroadbandModemMbimClass{ GType mm_broadband_modem_mbim_get_type (void); G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMBroadbandModemMbim, g_object_unref) -MMBroadbandModemMbim *mm_broadband_modem_mbim_new (const gchar *device, +MMBroadbandModemMbim *mm_broadband_modem_mbim_new (const gchar *device, const gchar **drivers, - const gchar *plugin, - guint16 vendor_id, - guint16 product_id); + const gchar *plugin, + guint16 vendor_id, + guint16 product_id); + +MMPortMbim *mm_broadband_modem_mbim_peek_port_mbim (MMBroadbandModemMbim *self); +MMPortMbim *mm_broadband_modem_mbim_peek_port_mbim_for_data (MMBroadbandModemMbim *self, + MMPort *data, + GError **error); +MMPortMbim *mm_broadband_modem_mbim_get_port_mbim (MMBroadbandModemMbim *self); +MMPortMbim *mm_broadband_modem_mbim_get_port_mbim_for_data (MMBroadbandModemMbim *self, + MMPort *data, + GError **error); #endif /* MM_BROADBAND_MODEM_MBIM_H */ |