aboutsummaryrefslogtreecommitdiff
path: root/plugins/cinterion/mm-modem-helpers-cinterion.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-12-14 13:54:47 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-01-04 14:11:17 +0100
commit11297bcc7914f49ae79b450e6582f0cc61fd178f (patch)
tree4fe7b044079984cd117f6a0c86631b5f2f493c91 /plugins/cinterion/mm-modem-helpers-cinterion.h
parent9f725bc96a0e0aa67440694799371f05c11bd74d (diff)
cinterion: implement connection status monitoring via ^SWWAN?
And consolidate the connection status checks done during connection and disconnection so that we re-use the same logic.
Diffstat (limited to 'plugins/cinterion/mm-modem-helpers-cinterion.h')
-rw-r--r--plugins/cinterion/mm-modem-helpers-cinterion.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/plugins/cinterion/mm-modem-helpers-cinterion.h b/plugins/cinterion/mm-modem-helpers-cinterion.h
index 5d05e2c6..e09c73d6 100644
--- a/plugins/cinterion/mm-modem-helpers-cinterion.h
+++ b/plugins/cinterion/mm-modem-helpers-cinterion.h
@@ -18,7 +18,9 @@
#ifndef MM_MODEM_HELPERS_CINTERION_H
#define MM_MODEM_HELPERS_CINTERION_H
-#include "glib.h"
+#include <glib.h>
+
+#include <mm-base-bearer.h>
/*****************************************************************************/
/* ^SCFG test parser */
@@ -68,14 +70,8 @@ gboolean mm_cinterion_parse_sind_response (const gchar *response,
/*****************************************************************************/
/* ^SWWAN response parser */
-typedef enum {
- MM_SWWAN_STATE_UNKNOWN = -1,
- MM_SWWAN_STATE_DISCONNECTED = 0,
- MM_SWWAN_STATE_CONNECTED = 1,
-} MMSwwanState;
-
-MMSwwanState mm_cinterion_parse_swwan_response (const gchar *response,
- guint swwan_index,
- GError **error);
+MMBearerConnectionStatus mm_cinterion_parse_swwan_response (const gchar *response,
+ guint swwan_index,
+ GError **error);
#endif /* MM_MODEM_HELPERS_CINTERION_H */