mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-27 08:51:29 +00:00
NDK OHOS接口命名问题修改
Signed-off-by: zhouxj <zhouxj1111@thundersoft.com> Change-Id: Ic1d3458c65ae94bebdc06d99f8b81ef3161d4320
This commit is contained in:
parent
f978e81dc7
commit
e0a9ced059
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2023 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2023-2024 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -186,6 +186,8 @@ int32_t OH_NetConn_GetAllNets(NetConn_NetHandleList *netHandleList);
|
||||
* 2100003 - Internal error.
|
||||
* @permission ohos.permission.INTERNET
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @deprecated since 13
|
||||
* @useinstead OH_NetConn_RegisterDnsResolver
|
||||
* @since 11
|
||||
* @version 1.0
|
||||
*/
|
||||
@ -199,11 +201,41 @@ int32_t OHOS_NetConn_RegisterDnsResolver(OH_NetConn_CustomDnsResolver resolver);
|
||||
* 2100003 - Internal error.
|
||||
* @permission ohos.permission.INTERNET
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @deprecated since 13
|
||||
* @useinstead OH_NetConn_UnregisterDnsResolver
|
||||
* @since 11
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OHOS_NetConn_UnregisterDnsResolver(void);
|
||||
|
||||
/**
|
||||
* @brief Registers a custom DNS resolver.
|
||||
*
|
||||
* @param resolver Pointer to the custom DNS resolver.
|
||||
* @return Returns the result code.
|
||||
* {@link NETMANAGER_EXT_SUCCESS} if the operation is successful.
|
||||
* {@link NETMANAGER_ERR_PERMISSION_DENIED} Missing permissions, add permission.
|
||||
* {@link NETMANAGER_ERR_PARAMETER_ERROR} Parameter error. Please enter a correct parameter.
|
||||
* @permission ohos.permission.INTERNET
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @since 13
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OH_NetConn_RegisterDnsResolver(OH_NetConn_CustomDnsResolver resolver);
|
||||
|
||||
/**
|
||||
* @brief Unregisters a custom DNS resolver.
|
||||
*
|
||||
* @return 0 - Success. 201 - Missing permissions.
|
||||
* 401 - Parameter error. 2100002 - Unable to connect to service.
|
||||
* 2100003 - Internal error.
|
||||
* @permission ohos.permission.INTERNET
|
||||
* @syscap SystemCapability.Communication.NetManager.Core
|
||||
* @since 13
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OH_NetConn_UnregisterDnsResolver(void);
|
||||
|
||||
/**
|
||||
* @brief Binds a socket to the specific network.
|
||||
*
|
||||
|
@ -70,5 +70,13 @@
|
||||
{
|
||||
"first_introduced": "12",
|
||||
"name": "OH_NetConn_UnregisterNetConnCallback"
|
||||
},
|
||||
{
|
||||
"first_introduced": "13",
|
||||
"name": "OH_NetConn_RegisterDnsResolver"
|
||||
},
|
||||
{
|
||||
"first_introduced": "13",
|
||||
"name": "OH_NetConn_UnregisterDnsResolver"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user