broadband-bearer: pass the IP family to subclasses when getting IP config

Subclasses may need to know which IP families were used for the setup
so they can return the correct IP configuration.  We can't just use
the MMBearer default_ip_family becuase that isn't the family that
was actually used during the connection.
This commit is contained in:
Dan Williams
2014-06-13 11:30:49 -05:00
parent 502a5dbaf5
commit e9395d83e3
4 changed files with 4 additions and 0 deletions
@@ -269,6 +269,7 @@ get_ip_config_3gpp (MMBroadbandBearer *self,
MMPortSerialAt *secondary,
MMPort *data,
guint cid,
MMBearerIpFamily ip_family,
GAsyncReadyCallback callback,
gpointer user_data)
{
+1
View File
@@ -187,6 +187,7 @@ get_ip_config_3gpp (MMBroadbandBearer *self,
MMPortSerialAt *secondary,
MMPort *data,
guint cid,
MMBearerIpFamily ip_family,
GAsyncReadyCallback callback,
gpointer user_data)
{
+1
View File
@@ -701,6 +701,7 @@ dial_3gpp_ready (MMBroadbandModem *modem,
ctx->secondary,
ctx->data,
ctx->cid,
ctx->ip_family,
(GAsyncReadyCallback)get_ip_config_3gpp_ready,
ctx);
return;
+1
View File
@@ -79,6 +79,7 @@ struct _MMBroadbandBearerClass {
MMPortSerialAt *secondary,
MMPort *data,
guint cid,
MMBearerIpFamily ip_family,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (* get_ip_config_3gpp_finish) (MMBroadbandBearer *self,