bearer-list: rename bearer find method to specify properties are compared
This commit is contained in:
@@ -156,8 +156,8 @@ mm_bearer_list_foreach (MMBearerList *self,
|
||||
}
|
||||
|
||||
MMBaseBearer *
|
||||
mm_bearer_list_find (MMBearerList *self,
|
||||
MMBearerProperties *properties)
|
||||
mm_bearer_list_find_by_properties (MMBearerList *self,
|
||||
MMBearerProperties *properties)
|
||||
{
|
||||
GList *l;
|
||||
|
||||
|
||||
@@ -72,8 +72,8 @@ void mm_bearer_list_foreach (MMBearerList *self,
|
||||
MMBearerListForeachFunc func,
|
||||
gpointer user_data);
|
||||
|
||||
MMBaseBearer *mm_bearer_list_find (MMBearerList *self,
|
||||
MMBearerProperties *properties);
|
||||
MMBaseBearer *mm_bearer_list_find_by_properties (MMBearerList *self,
|
||||
MMBearerProperties *properties);
|
||||
|
||||
void mm_bearer_list_disconnect_all_bearers (MMBearerList *self,
|
||||
GAsyncReadyCallback callback,
|
||||
|
||||
@@ -516,7 +516,7 @@ connection_step (ConnectionContext *ctx)
|
||||
bearer_properties = mm_simple_connect_properties_get_bearer_properties (ctx->properties);
|
||||
|
||||
/* Check if the bearer we want to create is already in the list */
|
||||
ctx->bearer = mm_bearer_list_find (list, bearer_properties);
|
||||
ctx->bearer = mm_bearer_list_find_by_properties (list, bearer_properties);
|
||||
if (!ctx->bearer) {
|
||||
mm_dbg ("Creating new bearer...");
|
||||
/* If we don't have enough space to create the bearer, try to remove
|
||||
|
||||
Reference in New Issue
Block a user