mirror of
https://github.com/openharmony/communication_t2stack.git
synced 2026-07-20 05:43:58 -04:00
2c6b2e3295
Signed-off-by: luojuheng <luojuheng@huawei.com>
50 lines
1.4 KiB
C
50 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2021-2023 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
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef NSTACKX_DFINDER_MGT_MSG_LOG_H
|
|
#define NSTACKX_DFINDER_MGT_MSG_LOG_H
|
|
|
|
#ifndef DFINDER_USE_MINI_NSTACKX
|
|
#include "coap_discover.h"
|
|
#endif
|
|
#include "cJSON.h"
|
|
#include "nstackx_error.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef DFINDER_MGT_MSG_LOG
|
|
#define DFINDER_MGT_UNPACK_LOG_LEN 400
|
|
#define DFINDER_MGT_UUID_LEN 14
|
|
|
|
void DFinderSetMgtMsgLog(int enable);
|
|
void DFinderMgtReqLog(CoapRequest *coapRequest);
|
|
void DFinderMgtUnpackLog(struct DeviceInfo *deviceInfo);
|
|
|
|
#define DFINDER_MGT_REQ_LOG(coapRequest) DFinderMgtReqLog(coapRequest)
|
|
#define DFINDER_MGT_UNPACK_LOG(deviceInfo) DFinderMgtUnpackLog(deviceInfo)
|
|
|
|
#else
|
|
#define DFINDER_MGT_REQ_LOG(coapRequest)
|
|
#define DFINDER_MGT_UNPACK_LOG(deviceInfo)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* END OF NSTACKX_DFINDER_MGT_MSG_LOG_H */
|