bearer-list: rename bearer find method to specify properties are compared

This commit is contained in:
Aleksander Morgado
2015-12-03 12:00:22 +01:00
parent 75c2347990
commit ea3cb005b8
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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