aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-3gpp.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-08 22:14:35 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:47 +0100
commit7db16d2279891d1014999bd3eaa8a9e6c6496e88 (patch)
tree111dad4bbaabeeba51ba6eb9a16717368f9948d3 /src/mm-iface-modem-3gpp.h
parent6a38bcf1a12acd9d2230873d18d13853eb40e76d (diff)
bearer: make bearer creation an asynchronous operation
We may want to do some checks while creating a new bearer.
Diffstat (limited to 'src/mm-iface-modem-3gpp.h')
-rw-r--r--src/mm-iface-modem-3gpp.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mm-iface-modem-3gpp.h b/src/mm-iface-modem-3gpp.h
index 70bfc7bc..e45934f6 100644
--- a/src/mm-iface-modem-3gpp.h
+++ b/src/mm-iface-modem-3gpp.h
@@ -172,9 +172,13 @@ struct _MMIfaceModem3gpp {
GError **error);
/* Create 3GPP bearer */
- MMBearer * (* create_3gpp_bearer) (MMBaseModem *modem,
- MMCommonBearerProperties *properties,
- GError **error);
+ void (* create_3gpp_bearer) (MMIfaceModem3gpp *self,
+ MMCommonBearerProperties *properties,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ MMBearer * (* create_3gpp_bearer_finish) (MMIfaceModem3gpp *self,
+ GAsyncResult *res,
+ GError **error);
};
GType mm_iface_modem_3gpp_get_type (void);
@@ -226,9 +230,13 @@ gboolean mm_iface_modem_3gpp_run_all_registration_checks_finish (MMIfaceModem3gp
GError **error);
/* Create new 3GPP bearer */
-MMBearer *mm_iface_modem_3gpp_create_bearer (MMIfaceModem3gpp *self,
- MMCommonBearerProperties *properties,
- GError **error);
+void mm_iface_modem_3gpp_create_bearer (MMIfaceModem3gpp *self,
+ MMCommonBearerProperties *properties,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+MMBearer *mm_iface_modem_3gpp_create_bearer_finish (MMIfaceModem3gpp *self,
+ GAsyncResult *res,
+ GError **error);
/* Allow registering in the network */
gboolean mm_iface_modem_3gpp_register_in_network_finish (MMIfaceModem3gpp *self,