Added alloc to ringbuf module.
This commit is contained in:
@@ -64,6 +64,8 @@ extern "C" {
|
||||
bool Ringbuf_Put(
|
||||
RING_BUFFER * b, /* ring buffer structure */
|
||||
char *data_element); /* one element to add to the ring */
|
||||
char * Ringbuf_Alloc(
|
||||
RING_BUFFER * b);
|
||||
void Ringbuf_Init(
|
||||
RING_BUFFER * b, /* ring buffer structure */
|
||||
char *data, /* data block or array of data */
|
||||
|
||||
@@ -61,6 +61,15 @@ typedef bool(
|
||||
*object_valid_instance_function) (
|
||||
uint32_t object_instance);
|
||||
|
||||
/* structure for linked list of object functions */
|
||||
struct BACnet_Read_Property_Functions;
|
||||
typedef struct BACnet_Read_Property_Functions {
|
||||
BACNET_OBJECT_TYPE object_type;
|
||||
read_property_function rp_object_property_value;
|
||||
object_valid_instance_function rp_object_valid_instance;
|
||||
struct BACnet_Read_Property_Functions *next;
|
||||
} BACNET_RP_FUNCTIONS;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user