diff --git a/location/agnss/v2_0/IAGnssCallback.idl b/location/agnss/v2_0/IAGnssCallback.idl index ab6b01488c8357764c97296bdaeedbcf5cf15207..2a7ab5fbd3cd5febfad2426e3c69735502e2c2e4 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 a166b6afff5331107af820aa5c85ec69cc1251d4..d4d3a4861c8565088ba5271149783d62bd997747 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