Add core stack headers into bacdef.h and cleanup includes. (#602)
* Added dependent BACnet stack headers into bacdef.h file. * Changed bacdef.h and other stack includes in c/h files to have a common pattern. * Moved bits.h, bytes.h, and bacnet_stack_exports.h under bacnet/basic/sys/ folder.
This commit is contained in:
@@ -9,8 +9,9 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <assert.h>
|
||||
/* BACnet Stack defines - first */
|
||||
#include "bacnet/bacdef.h"
|
||||
#include "bacnet/bacenum.h"
|
||||
/* BACnet Stack API */
|
||||
#include "bacnet/basic/sys/mstimer.h"
|
||||
/* us */
|
||||
#include "bacnet/basic/client/bac-rw.h"
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
#define BAC_DATA_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
|
||||
#include "bacnet/bacenum.h"
|
||||
/* BACnet Stack defines - first */
|
||||
#include "bacnet/bacdef.h"
|
||||
/* BACnet Stack API */
|
||||
#include "bacnet/bacapp.h"
|
||||
#include "bacnet/rp.h"
|
||||
#include "bacnet/bacnet_stack_exports.h"
|
||||
|
||||
struct bacnet_status_flags_t {
|
||||
bool in_alarm : 1;
|
||||
|
||||
@@ -12,8 +12,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
/* BACnet Stack defines - first */
|
||||
#include "bacnet/bacdef.h"
|
||||
#include "bacnet/bacenum.h"
|
||||
/* BACnet Stack API */
|
||||
#include "bacnet/bactext.h"
|
||||
#include "bacnet/bacapp.h"
|
||||
#include "bacnet/basic/sys/mstimer.h"
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
|
||||
#include "bacnet/bacenum.h"
|
||||
/* BACnet Stack defines - first */
|
||||
#include "bacnet/bacdef.h"
|
||||
/* BACnet Stack API */
|
||||
#include "bacnet/bacapp.h"
|
||||
#include "bacnet/rp.h"
|
||||
#include "bacnet/bacnet_stack_exports.h"
|
||||
|
||||
/**
|
||||
* @brief Callback function for iterating the results of the device discovery.
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
#define BAC_RW_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
|
||||
#include "bacnet/bacenum.h"
|
||||
/* BACnet Stack defines - first */
|
||||
#include "bacnet/bacdef.h"
|
||||
/* BACnet Stack API */
|
||||
#include "bacnet/bacapp.h"
|
||||
#include "bacnet/rp.h"
|
||||
#include "bacnet/bacnet_stack_exports.h"
|
||||
|
||||
/**
|
||||
* Save the requested ReadProperty data to a data store
|
||||
|
||||
@@ -13,11 +13,12 @@
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
/* core library */
|
||||
#include "bacnet/apdu.h"
|
||||
/* BACnet Stack defines - first */
|
||||
#include "bacnet/bacdef.h"
|
||||
/* BACnet Stack API */
|
||||
#include "bacnet/apdu.h"
|
||||
#include "bacnet/bacdcode.h"
|
||||
#include "bacnet/bacerror.h"
|
||||
#include "bacnet/config.h"
|
||||
#include "bacnet/dcc.h"
|
||||
#include "bacnet/iam.h"
|
||||
#include "bacnet/npdu.h"
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
#define BACNET_TASK_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "bacnet/bacdef.h" /* Must be before all other bacnet *.h files */
|
||||
#include "bacnet/bacnet_stack_exports.h"
|
||||
/* BACnet Stack defines - first */
|
||||
#include "bacnet/bacdef.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user