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)
14 : {
15 54 : return AdxIsCommHandleValid((AdxCommConHandle)handle);
16 : }
17 :
18 38 : void TraceAdxDestroyCommHandle(const void *handle)
19 : {
20 38 : AdxDestroyCommHandle((AdxCommHandle)handle);
21 38 : }
22 :
23 12 : int32_t TraceAdxSendMsg(const void *handle, const char *data, uint32_t len)
24 : {
25 12 : return AdxSendMsg((AdxCommConHandle)handle, data, len);
26 : }
27 :
28 4 : int32_t TraceAdxRecvMsg(const void *handle, char **data, uint32_t *len, uint32_t timeout)
29 : {
30 4 : return AdxRecvMsg((AdxCommHandle)handle, data, len, timeout);
31 : }
32 :
33 32 : int32_t TraceAdxGetAttrByCommHandle(const void *handle, int32_t attr, int32_t *value)
34 : {
35 32 : return AdxGetAttrByCommHandle((AdxCommConHandle)handle, attr, value);
36 : }
|