mbim-port: provide access to the internal MbimDevice
This commit is contained in:
@@ -31,6 +31,16 @@ struct _MMMbimPortPrivate {
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
guint32
|
||||
mm_mbim_port_get_next_transaction_id (MMMbimPort *self)
|
||||
{
|
||||
return (self->priv->mbim_device ?
|
||||
mbim_device_get_next_transaction_id (self->priv->mbim_device) :
|
||||
0);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef struct {
|
||||
MMMbimPort *self;
|
||||
GSimpleAsyncResult *result;
|
||||
@@ -187,6 +197,16 @@ mm_mbim_port_close (MMMbimPort *self)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
MbimDevice *
|
||||
mm_mbim_port_peek_device (MMMbimPort *self)
|
||||
{
|
||||
g_return_val_if_fail (MM_IS_MBIM_PORT (self), NULL);
|
||||
|
||||
return self->priv->mbim_device;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
MMMbimPort *
|
||||
mm_mbim_port_new (const gchar *name)
|
||||
{
|
||||
|
@@ -58,4 +58,8 @@ gboolean mm_mbim_port_open_finish (MMMbimPort *self,
|
||||
gboolean mm_mbim_port_is_open (MMMbimPort *self);
|
||||
void mm_mbim_port_close (MMMbimPort *self);
|
||||
|
||||
guint32 mm_mbim_port_get_next_transaction_id (MMMbimPort *self);
|
||||
|
||||
MbimDevice *mm_mbim_port_peek_device (MMMbimPort *self);
|
||||
|
||||
#endif /* MM_MBIM_PORT_H */
|
||||
|
Reference in New Issue
Block a user