Added alloc to ringbuf module.

This commit is contained in:
skarg
2009-12-18 04:20:44 +00:00
parent 11e1c80e38
commit dc2a432a65
3 changed files with 54 additions and 4 deletions
+2
View File
@@ -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 */
+9
View File
@@ -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 */