• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *    http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #ifndef NATIVE_NET_CONN_ADAPTER_H
16 #define NATIVE_NET_CONN_ADAPTER_H
17 
18 #include "http_proxy.h"
19 #include "net_connection_type.h"
20 #include "net_all_capabilities.h"
21 #include "net_handle.h"
22 #include "net_link_info.h"
23 #include "refbase.h"
24 
25 namespace OHOS::NetManagerStandard {
26 
27 int32_t Conv2NetHandle(NetHandle &netHandleObj, NetConn_NetHandle *netHandle);
28 
29 int32_t Conv2NetHandleObj(NetConn_NetHandle *netHandle, NetHandle &netHandleObj);
30 
31 int32_t Conv2NetHandleList(const std::list<sptr<NetHandle>> &netHandleObjList, NetConn_NetHandleList *netHandleList);
32 
33 int32_t Conv2NetLinkInfo(NetLinkInfo &infoObj, NetConn_ConnectionProperties *prop);
34 
35 int32_t Conv2NetAllCapabilities(NetAllCapabilities &netAllCapsObj, NetConn_NetCapabilities *netAllCaps);
36 
37 int32_t Conv2HttpProxy(HttpProxy &httpProxyObj, NetConn_HttpProxy *httpProxy);
38 
39 } // namespace OHOS::NetManagerStandard
40 #endif /* NATIVE_NET_CONN_ADAPTER_H */