| Top |  |  |  |  | 
| void | mbim_device_new () | 
| MbimDevice * | mbim_device_new_finish () | 
| GFile * | mbim_device_get_file () | 
| GFile * | mbim_device_peek_file () | 
| const gchar * | mbim_device_get_path () | 
| const gchar * | mbim_device_get_path_display () | 
| gboolean | mbim_device_is_open () | 
| void | mbim_device_open () | 
| gboolean | mbim_device_open_finish () | 
| void | mbim_device_open_full () | 
| gboolean | mbim_device_open_full_finish () | 
| void | mbim_device_close () | 
| gboolean | mbim_device_close_finish () | 
| gboolean | mbim_device_close_force () | 
| guint32 | mbim_device_get_next_transaction_id () | 
| void | mbim_device_command () | 
| MbimMessage * | mbim_device_command_finish () | 
| GFile * | device-file | Read / Write / Construct Only | 
| gboolean | device-in-session | Read / Write | 
| guint | device-transaction-id | Read / Write | 
| void | device-error | Run Last | 
| void | device-indicate-status | Run Last | 
| void | device-removed | Run Last | 
| #define | MBIM_DEVICE_FILE | 
| #define | MBIM_DEVICE_IN_SESSION | 
| #define | MBIM_DEVICE_TRANSACTION_ID | 
| #define | MBIM_DEVICE_SIGNAL_REMOVED | 
| #define | MBIM_DEVICE_SIGNAL_INDICATE_STATUS | 
| #define | MBIM_DEVICE_SIGNAL_ERROR | 
| struct | MbimDevice | 
| enum | MbimDeviceOpenFlags | 
MbimDevice is a generic type in charge of controlling the access to the managed MBIM port.
A MbimDevice can only handle one single MBIM port.
void mbim_device_new (GFile *file,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously creates a MbimDevice object to manage file
.
When the operation is finished, callback
 will be invoked. You can then call
mbim_device_new_finish() to get the result of the operation.
| file | a GFile. | |
| cancellable | optional GCancellable object, NULL to ignore. | |
| callback | a GAsyncReadyCallback to call when the initialization is finished. | |
| user_data | the data to pass to callback function. | 
MbimDevice * mbim_device_new_finish (GAsyncResult *res,GError **error);
Finishes an operation started with mbim_device_new().
GFile *
mbim_device_get_file (MbimDevice *self);
Get the GFile associated with this MbimDevice.
GFile *
mbim_device_peek_file (MbimDevice *self);
Get the GFile associated with this MbimDevice, without increasing the reference count on the returned object.
const gchar *
mbim_device_get_path (MbimDevice *self);
Get the system path of the underlying MBIM device.
const gchar *
mbim_device_get_path_display (MbimDevice *self);
Get the system path of the underlying MBIM device in UTF-8.
gboolean
mbim_device_is_open (MbimDevice *self);
Checks whether the MbimDevice is open for I/O.
void mbim_device_open (MbimDevice *self,guint timeout,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously opens a MbimDevice for I/O.
When the operation is finished callback
 will be called. You can then call
mbim_device_open_finish() to get the result of the operation.
| self | a MbimDevice. | |
| timeout | maximum time, in seconds, to wait for the device to be opened. | |
| cancellable | optional GCancellable object, NULL to ignore. | |
| callback | a GAsyncReadyCallback to call when the operation is finished. | |
| user_data | the data to pass to callback function. | 
gboolean mbim_device_open_finish (MbimDevice *self,GAsyncResult *res,GError **error);
Finishes an asynchronous open operation started with mbim_device_open().
void mbim_device_open_full (MbimDevice *self,MbimDeviceOpenFlags flags,guint timeout,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously opens a MbimDevice for I/O.
This method is an extension of the generic mbim_device_open(), which allows
launching the MbimDevice with proxy support.
When the operation is finished callback
 will be called. You can then call
mbim_device_open_full_finish() to get the result of the operation.
| self | a MbimDevice. | |
| flags | a set of MbimDeviceOpenFlags. | |
| timeout | maximum time, in seconds, to wait for the device to be opened. | |
| cancellable | optional GCancellable object, NULL to ignore. | |
| callback | a GAsyncReadyCallback to call when the operation is finished. | |
| user_data | the data to pass to callback function. | 
gboolean mbim_device_open_full_finish (MbimDevice *self,GAsyncResult *res,GError **error);
Finishes an asynchronous open operation started with mbim_device_open_full().
void mbim_device_close (MbimDevice *self,guint timeout,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously closes a MbimDevice for I/O.
When the operation is finished callback
 will be called. You can then call
mbim_device_close_finish() to get the result of the operation.
| self | a MbimDevice. | |
| timeout | maximum time, in seconds, to wait for the device to be closed. | |
| cancellable | optional GCancellable object, NULL to ignore. | |
| callback | a GAsyncReadyCallback to call when the operation is finished. | |
| user_data | the data to pass to callback function. | 
gboolean mbim_device_close_finish (MbimDevice *self,GAsyncResult *res,GError **error);
Finishes an asynchronous close operation started with mbim_device_close().
gboolean mbim_device_close_force (MbimDevice *self,GError **error);
Forces the MbimDevice to be closed.
guint32
mbim_device_get_next_transaction_id (MbimDevice *self);
Acquire the next transaction ID of this MbimDevice. The internal transaction ID gets incremented.
void mbim_device_command (MbimDevice *self,MbimMessage *message,guint timeout,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously sends a MbimMessage to the device.
When the operation is finished callback
 will be called. You can then call
mbim_device_command_finish() to get the result of the operation.
| self | a MbimDevice. | |
| message | the message to send. | |
| timeout | maximum time, in seconds, to wait for the response. | |
| cancellable | a GCancellable, or  | |
| callback | a GAsyncReadyCallback to call when the operation is finished. | |
| user_data | the data to pass to callback function. | 
MbimMessage * mbim_device_command_finish (MbimDevice *self,GAsyncResult *res,GError **error);
Finishes an operation started with mbim_device_command().
 a MbimMessage response, or NULL if error
is set. The returned value should be freed with mbim_message_unref().
#define MBIM_DEVICE_SIGNAL_INDICATE_STATUS "device-indicate-status"
struct MbimDevice;
The MbimDevice structure contains private data and should only be accessed using the provided API.
“device-file” property“device-file” GFile *
File to the underlying MBIM device.
Flags: Read / Write / Construct Only
“device-in-session” property“device-in-session” gboolean
Flag to specify if the device is within a session.
Flags: Read / Write
Default value: FALSE
“device-transaction-id” property“device-transaction-id” guint
Current transaction ID.
Flags: Read / Write
Allowed values: >= 1
Default value: 1
“device-error” signalvoid user_function (MbimDevice *self, GError *message, gpointer user_data)
The ::device-error signal is emitted when a MBIM error is received.
| self | the MbimDevice | |
| message | the MbimMessage error | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last
“device-indicate-status” signalvoid user_function (MbimDevice *self, MbimMessage *message, gpointer user_data)
The ::device-indication-status signal is emitted when a MBIM indication is received.
| self | the MbimDevice | |
| message | the MbimMessage indication | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last
“device-removed” signalvoid user_function (MbimDevice *self, gpointer user_data)
The ::device-removed signal is emitted when an unexpected port hang-up is received.
| self | the MbimDevice | |
| message | None | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last