From 3fecae186fda4056a51011b9a7cf5343fd9cdf10 Mon Sep 17 00:00:00 2001 From: WangTianhe8 Date: Tue, 27 May 2025 10:01:52 +0800 Subject: [PATCH] SuplApn Signed-off-by: WangTianhe8 --- location/agnss/v2_0/IAGnssCallback.idl | 11 +++++++++++ location/agnss/v2_0/IAGnssInterface.idl | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/location/agnss/v2_0/IAGnssCallback.idl b/location/agnss/v2_0/IAGnssCallback.idl index ab6b0148..2a7ab5fb 100644 --- a/location/agnss/v2_0/IAGnssCallback.idl +++ b/location/agnss/v2_0/IAGnssCallback.idl @@ -79,5 +79,16 @@ import ohos.hdi.location.agnss.v2_0.AGnssTypes; * @version 2.0 */ RequestAgnssRefInfo([in] enum AGnssRefInfoType type); + + /* + * @brief Request the upper layer to perform DNS query. + * + * @param fqdn Indicates the domain name for DNS query. + * @return Returns 0 if send request successed; returns a negative value otherwise. + * + * @since 6.0 + * @version 2.0 + */ + RequestSuplDns([in] String fqdn); } /** @} */ \ No newline at end of file diff --git a/location/agnss/v2_0/IAGnssInterface.idl b/location/agnss/v2_0/IAGnssInterface.idl index a166b6af..d4d3a486 100644 --- a/location/agnss/v2_0/IAGnssInterface.idl +++ b/location/agnss/v2_0/IAGnssInterface.idl @@ -106,5 +106,16 @@ interface IAGnssInterface { * @version 2.0 */ SendNetworkState([in] struct NetworkState state); + + /* + * @brief Send ipAddr to AGNSS module. + * + * @param ipAddr Indicates the ip address. + * @return Returns 0 if send successed; returns a negative value otherwise. + * + * @since 6.0 + * @version 2.0 + */ + SetSuplDnsResult([in] String ipAddr); } /** @} */ \ No newline at end of file -- Gitee