Skip to content

Commit

Permalink
service: Add IPv6 configuration notify function
Browse files Browse the repository at this point in the history
[service] Add IPv6 configuration notify function

Similar to what is for IPv4.
  • Loading branch information
LaakkonenJussi committed Mar 17, 2021
1 parent 9addbe6 commit 5b7e6fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connman/src/connman.h
Expand Up @@ -809,6 +809,8 @@ struct connman_ipconfig *__connman_service_get_ipconfig(
struct connman_service *service, int family);
void __connman_service_notify_ipv4_configuration(
struct connman_service *service);
void __connman_service_notify_ipv6_configuration(
struct connman_service *service);
bool __connman_service_is_connected_state(struct connman_service *service,
enum connman_ipconfig_type type);
const char *__connman_service_get_path(struct connman_service *service);
Expand Down
9 changes: 9 additions & 0 deletions connman/src/service.c
Expand Up @@ -2601,6 +2601,15 @@ static void ipv6_configuration_changed(struct connman_service *service)
service);
}

void __connman_service_notify_ipv6_configuration(
struct connman_service *service)
{
if (!service)
return;

ipv6_configuration_changed(service);
}

static void dns_changed(struct connman_service *service)
{
if (!allow_property_changed(service))
Expand Down

0 comments on commit 5b7e6fc

Please sign in to comment.