Fixed headers when built without Intrinsic Reporting.
This commit is contained in:
@@ -38,7 +38,6 @@
|
|||||||
#include "device.h"
|
#include "device.h"
|
||||||
#include "handlers.h"
|
#include "handlers.h"
|
||||||
#include "timestamp.h"
|
#include "timestamp.h"
|
||||||
#include "nc.h"
|
|
||||||
#include "ai.h"
|
#include "ai.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -111,9 +111,11 @@ extern "C" {
|
|||||||
uint32_t object_instance,
|
uint32_t object_instance,
|
||||||
float value);
|
float value);
|
||||||
|
|
||||||
#if defined(INTRINSIC_REPORTING)
|
/* note: header of Intrinsic_Reporting function is required
|
||||||
|
even when INTRINSIC_REPORTING is not defined */
|
||||||
void Analog_Input_Intrinsic_Reporting(uint32_t object_instance);
|
void Analog_Input_Intrinsic_Reporting(uint32_t object_instance);
|
||||||
|
|
||||||
|
#if defined(INTRINSIC_REPORTING)
|
||||||
int Analog_Input_Event_Information(unsigned index,
|
int Analog_Input_Event_Information(unsigned index,
|
||||||
BACNET_GET_EVENT_INFORMATION_DATA * getevent_data);
|
BACNET_GET_EVENT_INFORMATION_DATA * getevent_data);
|
||||||
|
|
||||||
|
|||||||
@@ -37,14 +37,10 @@
|
|||||||
#include "bacapp.h"
|
#include "bacapp.h"
|
||||||
#include "bactext.h"
|
#include "bactext.h"
|
||||||
#include "config.h" /* the custom stuff */
|
#include "config.h" /* the custom stuff */
|
||||||
#include "alarm_ack.h"
|
|
||||||
#include "getevent.h"
|
|
||||||
#include "wp.h"
|
|
||||||
#include "rp.h"
|
|
||||||
#include "nc.h"
|
|
||||||
#include "av.h"
|
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
#include "handlers.h"
|
#include "handlers.h"
|
||||||
|
#include "av.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef MAX_ANALOG_VALUES
|
#ifndef MAX_ANALOG_VALUES
|
||||||
#define MAX_ANALOG_VALUES 4
|
#define MAX_ANALOG_VALUES 4
|
||||||
|
|||||||
@@ -32,7 +32,11 @@
|
|||||||
#include "bacerror.h"
|
#include "bacerror.h"
|
||||||
#include "wp.h"
|
#include "wp.h"
|
||||||
#include "rp.h"
|
#include "rp.h"
|
||||||
|
#if defined(INTRINSIC_REPORTING)
|
||||||
#include "nc.h"
|
#include "nc.h"
|
||||||
|
#include "alarm_ack.h"
|
||||||
|
#include "getevent.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -96,14 +100,18 @@ extern "C" {
|
|||||||
float Analog_Value_Present_Value(
|
float Analog_Value_Present_Value(
|
||||||
uint32_t object_instance);
|
uint32_t object_instance);
|
||||||
|
|
||||||
|
/* note: header of Intrinsic_Reporting function is required
|
||||||
|
even when INTRINSIC_REPORTING is not defined */
|
||||||
void Analog_Value_Intrinsic_Reporting(
|
void Analog_Value_Intrinsic_Reporting(
|
||||||
uint32_t object_instance);
|
uint32_t object_instance);
|
||||||
|
|
||||||
|
#if defined(INTRINSIC_REPORTING)
|
||||||
int Analog_Value_Event_Information(unsigned index,
|
int Analog_Value_Event_Information(unsigned index,
|
||||||
BACNET_GET_EVENT_INFORMATION_DATA * getevent_data);
|
BACNET_GET_EVENT_INFORMATION_DATA * getevent_data);
|
||||||
|
|
||||||
int Analog_Value_Alarm_Ack(BACNET_ALARM_ACK_DATA * alarmack_data,
|
int Analog_Value_Alarm_Ack(BACNET_ALARM_ACK_DATA * alarmack_data,
|
||||||
BACNET_ERROR_CODE * error_code);
|
BACNET_ERROR_CODE * error_code);
|
||||||
|
#endif
|
||||||
|
|
||||||
void Analog_Value_Init(
|
void Analog_Value_Init(
|
||||||
void);
|
void);
|
||||||
|
|||||||
@@ -58,11 +58,13 @@
|
|||||||
#include "lsp.h"
|
#include "lsp.h"
|
||||||
#include "mso.h"
|
#include "mso.h"
|
||||||
#include "ms-input.h"
|
#include "ms-input.h"
|
||||||
#include "nc.h"
|
|
||||||
#include "trendlog.h"
|
#include "trendlog.h"
|
||||||
|
#if defined(INTRINSIC_REPORTING)
|
||||||
|
#include "nc.h"
|
||||||
|
#endif /* defined(INTRINSIC_REPORTING) */
|
||||||
#if defined(BACFILE)
|
#if defined(BACFILE)
|
||||||
#include "bacfile.h"
|
#include "bacfile.h"
|
||||||
#endif
|
#endif /* defined(BACFILE) */
|
||||||
|
|
||||||
|
|
||||||
#if defined(__BORLANDC__)
|
#if defined(__BORLANDC__)
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ typedef enum {
|
|||||||
} NC_RECIPIENT_TYPE;
|
} NC_RECIPIENT_TYPE;
|
||||||
|
|
||||||
|
|
||||||
/* BACnetRecipient sructuer*/
|
#if defined(INTRINSIC_REPORTING)
|
||||||
|
/* BACnetRecipient structure */
|
||||||
/*
|
/*
|
||||||
BACnetRecipient ::= CHOICE {
|
BACnetRecipient ::= CHOICE {
|
||||||
device [0] BACnetObjectIdentifier,
|
device [0] BACnetObjectIdentifier,
|
||||||
@@ -126,6 +127,7 @@ typedef struct Ack_Notification {
|
|||||||
BACNET_EVENT_NOTIFICATION_DATA * event_data);
|
BACNET_EVENT_NOTIFICATION_DATA * event_data);
|
||||||
|
|
||||||
void Notification_Class_find_recipient(void);
|
void Notification_Class_find_recipient(void);
|
||||||
|
#endif /* defined(INTRINSIC_REPORTING) */
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -62,11 +62,13 @@
|
|||||||
#include "lsp.h"
|
#include "lsp.h"
|
||||||
#include "mso.h"
|
#include "mso.h"
|
||||||
#include "ms-input.h"
|
#include "ms-input.h"
|
||||||
#include "nc.h"
|
|
||||||
#include "trendlog.h"
|
#include "trendlog.h"
|
||||||
|
#if defined(INTRINSIC_REPORTING)
|
||||||
|
#include "nc.h"
|
||||||
|
#endif /* defined(INTRINSIC_REPORTING) */
|
||||||
#if defined(BACFILE)
|
#if defined(BACFILE)
|
||||||
#include "bacfile.h"
|
#include "bacfile.h"
|
||||||
#endif
|
#endif /* defined(BACFILE) */
|
||||||
|
|
||||||
|
|
||||||
/** @file server/main.c Example server application using the BACnet Stack. */
|
/** @file server/main.c Example server application using the BACnet Stack. */
|
||||||
|
|||||||
Reference in New Issue
Block a user