Commit Graph

21 Commits

Author SHA1 Message Date
skarg f6096f6a4d Unified the licenses on header files since we don't have any inline functions or macros with substantial bodies. Per RMS: "Our view is that just using structure definitions, typedefs, enumeration constants, macros with simple bodies, etc., is NOT enough to make a derivative work. It would take a substantial amount of code (coming from inline functions or macros with substantial bodies) to do that." 2012-04-18 16:15:59 +00:00
gri6507 6e82afde79 Another attempt to refactor the bacapp_print_value function into a print() and
an extract() function. The original implementation used calloc() inside the
extract() routine which forced all clients, including embedded builds, to have a
heap. This was very heavy handed. The new solution is must more flexible. 
* If the client want to use the print() functionality, they will have to support
  calloc and string safe variable argument length function similar to snprintf.
  This seems reasonable because if you can print, then you can typically support
  these complex capabilities. 
* For clients that don't want to print, but still want to parse the bacpp value
  into a string, they can use the new extract() method, which only requires
  supports for snprintf. This would require a compile time definition of
  BACAPP_SNPRINTF_ENABLED.
* For clients which don't want the overhead of these heavy handed methods, it is
  possible to set compile time flags to not inherit either the print() or the
  extract() functions.
2011-12-12 16:22:04 +00:00
skarg 4c78ada0ed Changes from r2160 broke microcontroller ports compiles. Reverting until fixed. 2011-12-07 03:16:57 +00:00
gri6507 2b433d72a7 Added the ability to parse the OBJECT_PROPERTY_VALUE into a string (bacapp_extract_value) in addition to outputting it to a stream (bacapp_print_value). 2011-11-28 15:33:58 +00:00
skarg f19f2c29d9 Converted all the BACnet-array-index variables from int32 to uint32 as they were intended. 2011-08-23 20:11:42 +00:00
skarg 2a0bf4926a Performed standard indent script indent.sh on project files. 2010-12-15 19:02:40 +00:00
tbrennan3 22c14fccad Followed Steve's good recommendation, and made routed_get_my_address() be a variant of datalink_get_my_address() just when routing is in use. Haven't done anything about the sending functions yet.
Renamed Lookup_Routed_Device_Address() as Routed_Device_Address_Lookup(), and replaced it in the routed npdu handler with a function that finds the "next" gateway or routed device, as per the destination address.  (Less tied to the specifics of the gw_device.c implementation.)
Fixed a few build warnings (eg, %zu for size_t arguments).
Until we improve the makefile system, I've enabled BAC_ROUTING in config.h
2010-11-24 20:44:32 +00:00
skarg f934f8add8 Changed bacapp data len function to just decode the len without regard to the storage ability of the internal data structures. 2010-10-13 02:29:55 +00:00
skarg 50a8a3f2fb Changed some plumbing for printing values to handle the case of a Present-Value enumerated property from a proprietary object type. 2010-09-02 13:16:27 +00:00
skarg 748c77dc93 Adding prototypes and include files where required. 2010-08-17 13:58:30 +00:00
tbrennan3 79436d1ae0 Eliminate the build error in bacepics when PRINT_ENABLED = 0.
Still lots of warnings in bacepics, but I don't see an issue with that, for an application whose whole point is to print output.
2010-06-18 20:40:43 +00:00
skarg c04e69da8c Fixed EOL, indent. 2009-10-24 17:02:59 +00:00
minack a944510441 Fixed up bug with encode_application_double function.
Added new bacapp_decode_application_data_safe function and other *_safe functions that aim to prevent buffer overruns if encoded application message is malformed.
Note: bacstr unit tests currently have one failure.
2009-08-10 00:06:56 +00:00
skarg b85c4355d0 Indented according to standard indent rules for this project. 2009-04-18 20:50:04 +00:00
skarg 51845ed4fd Corrected warnings generated from splint. 2009-04-18 13:48:15 +00:00
skarg 1f3bce1b56 Changed BACnet enumerations API to use uint32_t rather than int. 2009-01-25 22:56:47 +00:00
skarg c2fdccb2df Corrected RPM client handling - missed the AccessError tag. Thanks, Kevin! 2008-12-02 06:57:14 +00:00
skarg 7921d2f811 added ReadPropertyMultiple client demo application, bacrpm. 2008-11-23 22:25:08 +00:00
skarg 411d6c1b24 Indented. 2007-11-29 15:56:53 +00:00
skarg 4d2f46b395 Added defines for each BACAPP datatype so that the developer could only use the ones they need for their WriteProperty applications. 2007-10-19 17:11:31 +00:00
skarg a2506536ed Moved header files into the include directory. Moved source files into the src directory. Still need to updated the makefiles and projects. 2007-10-10 03:34:37 +00:00