Merge request !1393 from 'supl-ip-byte-order-doc'

modem-helpers: document mm_parse_supl_address()

https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1393
This commit is contained in:
Dan Williams
2025-08-16 11:31:46 -05:00
+14
View File
@@ -5502,6 +5502,20 @@ out:
/*****************************************************************************/ /*****************************************************************************/
/**
* mm_parse_supl_address:
* @supl: SUPL server address in string form.
* @out_fqdn: Return location for SUPL server hostname/FQDN if @supl contains one.
* @out_ip: Return location for the SUPL server IP address (in network byte
* order) if @supl contains an IP address instead of a hostname/FQDN.
* @out_port: Return location for the port number from @supl, if any.
* @error: Return location for an error, or %NULL.
*
* Parses @supl into either a hostname/FQDN and port, or IP address and port, or
* returns an error if @supl is malformed.
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
*/
gboolean gboolean
mm_parse_supl_address (const gchar *supl, mm_parse_supl_address (const gchar *supl,
gchar **out_fqdn, gchar **out_fqdn,