mbim-port: provide access to the internal MbimDevice

This commit is contained in:
Aleksander Morgado
2013-04-07 19:21:47 +02:00
parent 12d6e59c86
commit 07f39cc29f
2 changed files with 24 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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 */