aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-modem.h')
-rw-r--r--src/mm-modem.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/mm-modem.h b/src/mm-modem.h
index 19640ac8..c4200645 100644
--- a/src/mm-modem.h
+++ b/src/mm-modem.h
@@ -23,6 +23,7 @@
#include <ModemManager.h>
#include "mm-port.h"
+#include "mm-at-serial-port.h"
#include "mm-auth-provider.h"
#include "mm-charsets.h"
@@ -118,13 +119,23 @@ struct _MMModem {
const char *subsys,
const char *name);
+ /* Subclasses use this function to claim a particular port */
gboolean (*grab_port) (MMModem *self,
const char *subsys,
const char *name,
- MMPortType suggested_type,
+ MMPortType ptype,
+ MMAtPortFlags at_pflags,
gpointer user_data,
GError **error);
+ /* Subclasses use this function to determine which of their
+ * grabbed ports should be used for data, command and status,
+ * PPP, etc. Called after all ports have been detected and
+ * grabbed by the modem.
+ */
+ gboolean (*organize_ports) (MMModem *self,
+ GError **error);
+
void (*release_port) (MMModem *self,
const char *subsys,
const char *name);
@@ -204,10 +215,14 @@ gboolean mm_modem_owns_port (MMModem *self,
gboolean mm_modem_grab_port (MMModem *self,
const char *subsys,
const char *name,
- MMPortType suggested_type,
+ MMPortType ptype,
+ MMAtPortFlags at_pflags,
gpointer user_data,
GError **error);
+gboolean mm_modem_organize_ports (MMModem *self,
+ GError **error);
+
void mm_modem_release_port (MMModem *self,
const char *subsys,
const char *name);