#include "vw-bap.h"
+
+struct BAP_Frame* vw_bap_frame_alloc(void)
+{
+ struct BAP_Frame* bap_frame;
+
+ bap_frame = calloc(1, sizeof(struct BAP_Frame));
+
+ return bap_frame;
+}
+
+
+void vw_bap_frame_free(struct BAP_Frame *bap_frame)
+{
+ free(bap_frame);
+}
+
+
+
+
+
void vw_bap_frame_dump(struct BAP_Frame *bap_frame)
{
unsigned i;
}
bap->mfchannel[mfchannel] = NULL;
- bap_frame = calloc(1, sizeof(struct BAP_Frame));
+ bap_frame = vw_bap_frame_alloc();
if (!bap_frame) {
printf("bap_handle_can_frame: Failed to allocate new frame\n");
return NULL;
-void vw_bap_frame_free(struct BAP_Frame *bap_frame)
-{
- free(bap_frame);
-}
-
-
-
struct BAP_RXer* vw_bap_rxer_alloc()
{
struct BAP_RXer *bap;