Refactored the bacnet file object to be storage agnostic with callbacks. (#1056)

This commit is contained in:
Steve Karg
2025-08-01 09:58:07 -05:00
committed by GitHub
parent f88f5a3424
commit 1bebd6ac81
33 changed files with 869 additions and 308 deletions
-1
View File
@@ -9,7 +9,6 @@
#include "bacnet/basic/object/bacfile.h"
#include "bacnet/basic/object/netport.h"
#include "bacnet/basic/object/sc_netport.h"
#include "bacnet/basic/object/bacfile.h"
#include "bacnet/basic/sys/debug.h"
#include <stdlib.h>
+4
View File
@@ -31,6 +31,7 @@
#include "bacnet/datalink/datalink.h"
#include "bacnet/datalink/dlenv.h"
#include "bacnet/datalink/dlmstp.h"
#include "bacfile-posix.h"
/* enable debugging */
static bool Datalink_Debug;
@@ -989,6 +990,9 @@ void dlenv_init(void)
port_type = PORT_TYPE_NON_BACNET;
#endif
#endif
/* initialize the POSIX file objects */
bacfile_posix_init();
/* === Initialize the Network Port Object Here === */
Network_Port_Type_Set(Network_Port_Instance, port_type);
switch (port_type) {
case PORT_TYPE_BIP: