diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2015-01-28 13:02:32 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-01-28 20:25:06 +0100 |
commit | f962c45e43acba116e70074805c40bca73b29076 (patch) | |
tree | a2898d7298551ee4deb881b992f2687597155129 /src/libqmi-glib/qmi-device.h | |
parent | e02abb054bc8be9e93efde055191a7451ba9f8f5 (diff) | |
download | external_libqmi-f962c45e43acba116e70074805c40bca73b29076.zip external_libqmi-f962c45e43acba116e70074805c40bca73b29076.tar.gz external_libqmi-f962c45e43acba116e70074805c40bca73b29076.tar.bz2 |
libqmi-glib,device: new property and getter to load the WWAN interface name
Each QMI control port has one and only one associated WWAN net port. This new
"device-wwan-iface" property and the qmi_device_get_wwan_iface() getter allow
to load the WWAN net port name by looking directly at sysfs.
Diffstat (limited to 'src/libqmi-glib/qmi-device.h')
-rw-r--r-- | src/libqmi-glib/qmi-device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libqmi-glib/qmi-device.h b/src/libqmi-glib/qmi-device.h index cef7c50..8224099 100644 --- a/src/libqmi-glib/qmi-device.h +++ b/src/libqmi-glib/qmi-device.h @@ -50,6 +50,7 @@ typedef struct _QmiDevicePrivate QmiDevicePrivate; #define QMI_DEVICE_FILE "device-file" #define QMI_DEVICE_NO_FILE_CHECK "device-no-file-check" #define QMI_DEVICE_PROXY_PATH "device-proxy-path" +#define QMI_DEVICE_WWAN_IFACE "device-wwan-iface" #define QMI_DEVICE_SIGNAL_INDICATION "indication" @@ -83,6 +84,7 @@ GFile *qmi_device_get_file (QmiDevice *self); GFile *qmi_device_peek_file (QmiDevice *self); const gchar *qmi_device_get_path (QmiDevice *self); const gchar *qmi_device_get_path_display (QmiDevice *self); +const gchar *qmi_device_get_wwan_iface (QmiDevice *self); gboolean qmi_device_is_open (QmiDevice *self); /** |