aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-30 23:47:39 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:41 +0100
commitba5321adf153bed36a3328b6178e3746c17140ce (patch)
tree55148458d97f5ff7752eb98ad8ba56140f05c0ea /src/mm-iface-modem.h
parent7d2626ea4495ffaac5a180ae167fe264b355c990 (diff)
iface-modem: let different SIM object creation implementations
We let objects implementing the Modem interface to provide their own SIM creation method. This allows plugins to subclass MMSim themselves.
Diffstat (limited to 'src/mm-iface-modem.h')
-rw-r--r--src/mm-iface-modem.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-iface-modem.h b/src/mm-iface-modem.h
index 4a82cbb8..e86b0da6 100644
--- a/src/mm-iface-modem.h
+++ b/src/mm-iface-modem.h
@@ -22,6 +22,7 @@
#include "mm-charsets.h"
#include "mm-at-serial-port.h"
#include "mm-bearer.h"
+#include "mm-sim.h"
#define MM_TYPE_IFACE_MODEM (mm_iface_modem_get_type ())
#define MM_IFACE_MODEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_IFACE_MODEM, MMIfaceModem))
@@ -253,6 +254,14 @@ struct _MMIfaceModem {
GAsyncResult *res,
GError **error);
+ /* Create SIM */
+ void (*create_sim) (MMIfaceModem *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ MMSim * (*create_sim_finish) (MMIfaceModem *self,
+ GAsyncResult *res,
+ GError **error);
+
/* Create bearer */
void (*create_bearer) (MMIfaceModem *self,
MMCommonBearerProperties *properties,