Made the TSM portion optional via a #define (set in the makefile) so that simple server could be compiled without it.

This commit is contained in:
skarg
2006-01-23 13:06:01 +00:00
parent 427eb31e8d
commit 22db53dd00
2 changed files with 8 additions and 1 deletions
-1
View File
@@ -69,7 +69,6 @@ void apdu_set_unrecognized_service_handler_handler(
static unconfirmed_function
Unconfirmed_Function[MAX_BACNET_UNCONFIRMED_SERVICE] =
{
iam_handler,
NULL
};
+8
View File
@@ -39,6 +39,9 @@
#include <stddef.h>
#include "bacdef.h"
/* note: TSM functionality is optional - only needed if we are
doing client requests */
#if TSM_ENABLED
typedef enum
{
TSM_STATE_IDLE,
@@ -109,6 +112,11 @@ bool tsm_get_transaction_pdu(
uint16_t *pdu_len);
bool tsm_invoke_id_free(uint8_t invokeID);
#else
#define tsm_free_invoke_id(x) (void)x;
#endif
#ifdef __cplusplus
}