--- src/connman.h | 1 + src/service.c | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/connman.h b/src/connman.h index 1dc6e51..e86eadd 100644 --- a/src/connman.h +++ b/src/connman.h @@ -466,6 +466,7 @@ void __connman_service_put(struct connman_service *service); struct connman_service *__connman_service_lookup_from_network(struct connman_network *network); struct connman_service *__connman_service_lookup_from_index(int index); +struct connman_service *__connman_service_lookup_by_identifier(const char *identifier); struct connman_service *__connman_service_create_from_network(struct connman_network *network); struct connman_service *__connman_service_create_from_provider(struct connman_provider *provider); void __connman_service_update_from_network(struct connman_network *network); diff --git a/src/service.c b/src/service.c index 2249863..a8ebe19 100644 --- a/src/service.c +++ b/src/service.c @@ -4081,12 +4081,12 @@ int __connman_service_lookup(const char *pattern, const char **path) } /** - * lookup_by_identifier: + * __connman_service_lookup_by_identifier: * @identifier: service identifier * * Look up a service by identifier (reference count will not be increased) */ -static struct connman_service *lookup_by_identifier(const char *identifier) +struct connman_service *__connman_service_lookup_by_identifier(const char *identifier) { GSequenceIter *iter; @@ -4239,7 +4239,7 @@ int __connman_service_create_and_connect(DBusMessage *msg) name = g_strdup_printf("%s_%s_%s", type, ident, group); - service = lookup_by_identifier(name); + service = __connman_service_lookup_by_identifier(name); if (service != NULL) goto done; @@ -4248,7 +4248,7 @@ int __connman_service_create_and_connect(DBusMessage *msg) if (network != NULL) connman_network_set_group(network, group); - service = lookup_by_identifier(name); + service = __connman_service_lookup_by_identifier(name); done: g_free(name); @@ -4360,7 +4360,7 @@ int __connman_service_provision(DBusMessage *msg) ident = group + strlen("service_"); /* trigger service provisioning if service exists */ - service = lookup_by_identifier(ident); + service = __connman_service_lookup_by_identifier(ident); if (service != NULL) __connman_config_provision_service(service); @@ -4652,7 +4652,7 @@ struct connman_service *__connman_service_lookup_from_network(struct connman_net name = g_strdup_printf("%s_%s_%s", __connman_network_get_type(network), ident, group); - service = lookup_by_identifier(name); + service = __connman_service_lookup_by_identifier(name); g_free(name); return service; -- 1.7.4 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman