diff mbox series

[v2,3/3] service: Add documentation to 'address_updated'.

Message ID 20231124174025.971512-4-gerickson@nuovations.com (mailing list archive)
State Not Applicable, archived
Headers show
Series service: Minor address_updated Changes | expand

Commit Message

Grant Erickson Nov. 24, 2023, 5:40 p.m. UTC
This adds documentation to the 'address_updated' function.
---
 src/service.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

diff --git a/src/service.c b/src/service.c
index ce02aa62fb7c..86eb74d26c6e 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2235,6 +2235,33 @@  void __connman_service_wispr_start(struct connman_service *service,
 			online_check_connect_timeout_ms, complete_online_check);
 }
 
+/**
+ *  @brief
+ *    Handle an update to the address(es) for the specified network
+ *    service and IP configuration type.
+ *
+ *  This attempts to handle an address change or update for the
+ *  specified network service and IP configuration type if and only if
+ *  it is connected (that is, #is_connected returns true) and it is
+ *  the default service (that is, has the default route).
+ *
+ *  If the service meets those criteria, then nameservers are
+ *  refreshed, an "online" HTTP-based Internet reachability check is
+ *  initiated, and a time-of-day synchronization is requested.
+ *
+ *  @param[in,out]  service  A pointer to the mutable network service
+ *                           for which there was an address change or
+ *                           update.
+ *  @param[in]      type     The IP configuration type for @a service
+ *                           for which there was an address change or
+ *                           update.
+ *
+ *  @sa nameserver_remove_all
+ *  @sa nameserver_add_all
+ *  @sa start_online_check
+ *  @sa __connman_timeserver_sync
+ *
+ */
 static void address_updated(struct connman_service *service,
 			enum connman_ipconfig_type type)
 {