fix: linking with cpp code (#95)
* fix: linking with cpp code * fix: make Handler_Transmit_Buffer always available
This commit is contained in:
committed by
GitHub
parent
9cad803cc8
commit
ff9697bab4
@@ -21,8 +21,8 @@
|
|||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
#ifndef TSM_H
|
#ifndef BACNET_BASIC_TSM_TSM_H
|
||||||
#define TSM_H
|
#define BACNET_BASIC_TSM_TSM_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@@ -35,9 +35,18 @@
|
|||||||
/* note: TSM functionality is optional - only needed if we are
|
/* note: TSM functionality is optional - only needed if we are
|
||||||
doing client requests */
|
doing client requests */
|
||||||
|
|
||||||
/* FIXME: modify basic service handlers to use TSM rather than this buffer! */
|
#ifdef __cplusplus
|
||||||
BACNET_STACK_EXPORT extern
|
extern "C" {
|
||||||
uint8_t Handler_Transmit_Buffer[MAX_PDU];
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
/* FIXME: modify basic service handlers to use TSM rather than this buffer! */
|
||||||
|
BACNET_STACK_EXPORT extern
|
||||||
|
uint8_t Handler_Transmit_Buffer[MAX_PDU];
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
#if (!MAX_TSM_TRANSACTIONS)
|
#if (!MAX_TSM_TRANSACTIONS)
|
||||||
#define tsm_free_invoke_id(x) (void)x;
|
#define tsm_free_invoke_id(x) (void)x;
|
||||||
|
|||||||
Reference in New Issue
Block a user