diff mbox series

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

Message ID 20231116030912.636756-4-gerickson@nuovations.com (mailing list archive)
State Superseded
Headers show
Series service: Minor address_updated Changes | expand

Commit Message

Grant Erickson Nov. 16, 2023, 3:09 a.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 f0e8364ee77b..2f5c3c8934f5 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2015,6 +2015,33 @@  void __connman_service_wispr_start(struct connman_service *service,
 	__connman_wispr_start(service, type, 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)
 {