aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-04-07 19:21:47 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-04-17 15:19:38 +0200
commit07f39cc29f30d7892b1615c26be9752b593d4486 (patch)
tree296b836e4fffe33d0dcd2c5199bb12caae4db2d6 /src
parent12d6e59c86dc9feb38cc84ec49e3ade25f07336e (diff)
mbim-port: provide access to the internal MbimDevice
Diffstat (limited to 'src')
-rw-r--r--src/mm-mbim-port.c20
-rw-r--r--src/mm-mbim-port.h4
2 files changed, 24 insertions, 0 deletions
diff --git a/src/mm-mbim-port.c b/src/mm-mbim-port.c
index ad278b1c..d300bf3a 100644
--- a/src/mm-mbim-port.c
+++ b/src/mm-mbim-port.c
@@ -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)
{
diff --git a/src/mm-mbim-port.h b/src/mm-mbim-port.h
index 0ea63949..434d5834 100644
--- a/src/mm-mbim-port.h
+++ b/src/mm-mbim-port.h
@@ -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 */