Line data Source code
1 : /**
2 : * Copyright (c) 2025 Huawei Technologies Co., Ltd.
3 : * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
4 : * CANN Open Software License Agreement Version 2.0 (the "License").
5 : * Please refer to the License for details. You may not use this file except in compliance with the License.
6 : * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
7 : * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8 : * See LICENSE in the root of the software repository for the full text of the License.
9 : */
10 : #include "trace_adx_api.h"
11 : #include "adcore_api.h"
12 :
13 54 : int32_t TraceAdxIsCommHandleValid(const void* handle) { return AdxIsCommHandleValid((AdxCommConHandle)handle); }
14 :
15 38 : void TraceAdxDestroyCommHandle(const void* handle) { AdxDestroyCommHandle((AdxCommHandle)handle); }
16 :
17 8 : int32_t TraceAdxSendMsg(const void* handle, const char* data, uint32_t len)
18 : {
19 8 : return AdxSendMsg((AdxCommConHandle)handle, data, len);
20 : }
21 :
22 4 : int32_t TraceAdxRecvMsg(const void* handle, char** data, uint32_t* len, uint32_t timeout)
23 : {
24 4 : return AdxRecvMsg((AdxCommHandle)handle, data, len, timeout);
25 : }
26 :
27 30 : int32_t TraceAdxGetAttrByCommHandle(const void* handle, int32_t attr, int32_t* value)
28 : {
29 30 : return AdxGetAttrByCommHandle((AdxCommConHandle)handle, attr, value);
30 : }
|