Files
communication_t2stack/nstackx_ctrl/include/json_payload.h
T
Agrant 3007a9b386 sync to 9171d758c
Signed-off-by: Agrant <luojuheng@huawei.com>
2026-01-19 11:17:56 +08:00

44 lines
1.2 KiB
C

/*
* Copyright (C) 2021 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 JSON_PAYLOAD_H
#define JSON_PAYLOAD_H
#include <stdint.h>
#include "nstackx.h"
#ifdef __cplusplus
extern "C" {
#endif
#define NSTACKX_MAX_URI_BUFFER_LENGTH 64
#ifdef DFINDER_USE_MINI_NSTACKX
#define COAP_DEVICE_DISCOVER_URI "device_discover"
#endif
struct DeviceInfo;
#ifdef DFINDER_SUPPORT_MULTI_NIF
char *PrepareServiceDiscoverWithIdx(uint8_t isBroadcast, uint32_t idx);
#else
char *PrepareServiceDiscover(uint8_t isBroadcast);
#endif
int32_t ParseServiceDiscover(const uint8_t *buf, struct DeviceInfo *deviceInfo, char **remoteUrlPtr);
#ifdef __cplusplus
}
#endif
#endif /* #ifndef JSON_PAYLOAD_H */