cb243c36a8
* Change MIT license texts to SPDX-License-Identifier SPDX-License-Identifier is much easier to understand and grep than license text so use that instead. * Change GPL exception license texts to SPDX-License-Identifier SPDX-License-Identifier is much easier to understand and grep than license text so use that instead. * Change misc license texts to SPDX-License-Identifier There are some external code in repo which are not licenses as most of the stuff in this repo. We still want every file to have SPDX identifier to easily grep licenses. * Add currently used license files Even though Bacnet-Stack is using SPDX identifiers we still need to give those license files with source. For this reason add all license files to license/ folder. SPDX has also files which would make same thing but this is style which example Linux kernel is using and it is quite clear so I choose that one for now. I choosed not yet bring CC-PDDC as that is not right license for those files. --------- Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
41 lines
941 B
C
41 lines
941 B
C
/**************************************************************************
|
|
*
|
|
* Copyright (C) 2020 Steve Karg
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later WITH GCC-exception-2.0
|
|
*
|
|
*********************************************************************/
|
|
/* BACnet Stack defines - first */
|
|
#include "bacnet/bacdef.h"
|
|
/* BACnet Stack API */
|
|
#include "bacnet/datalink/bvlc.h"
|
|
|
|
/**
|
|
* @brief Encode the BVLC header
|
|
*
|
|
* @param pdu - buffer to store the encoding
|
|
* @param pdu_size - size of the buffer to store encoding
|
|
* @param message_type - BVLL Messages
|
|
* @param length - number of bytes for this message type
|
|
*
|
|
* @return number of bytes encoded
|
|
*/
|
|
void bvlc_file_bdt_write(
|
|
void *data,
|
|
size_t len)
|
|
{
|
|
/* TODO: Write BDT data blob into persistent storage */
|
|
}
|
|
|
|
|
|
size_t bvlc_file_bdt_read(
|
|
void *data,
|
|
size_t len)
|
|
{
|
|
size_t sz = -1;
|
|
|
|
/* TODO: Read BD data blob from persistent storage */
|
|
|
|
return sz;
|
|
}
|