for (i = 0; i < can_id_count; i++) {
can_ids[i] = strtoul(argv[2 + i], NULL, 0);
- baps[i] = bap_alloc();
+ baps[i] = vw_bap_alloc();
if (!baps[i]) {
printf("Out of memory allocating BAP struct.\n");
return 1;
struct BAP_Frame *bap_frame;
struct BAP_RXer *bap = baps[i];
- bap_frame = bap_handle_can_frame(bap, &frame);
+ bap_frame = vw_bap_handle_can_frame(bap, &frame);
if (bap_frame) {
printf("%03x: ", frame.can_id);
- bap_frame_dump(bap_frame);
- bap_frame_free(bap_frame);
+ vw_bap_frame_dump(bap_frame);
+ vw_bap_frame_free(bap_frame);
}
break;
#include "vw-bap.h"
-void bap_frame_dump(struct BAP_Frame *bap_frame)
+void vw_bap_frame_dump(struct BAP_Frame *bap_frame)
{
unsigned i;
-struct BAP_Frame* bap_handle_can_frame(struct BAP_RXer *bap, struct can_frame *frame)
+struct BAP_Frame* vw_bap_handle_can_frame(struct BAP_RXer *bap, struct can_frame *frame)
{
struct BAP_Frame *bap_frame = NULL;
unsigned short header;
-struct BAP_RXer* bap_alloc()
+struct BAP_RXer* vw_bap_alloc()
{
struct BAP_RXer *bap;
-void bap_free(struct BAP_RXer *bap)
+void vw_bap_free(struct BAP_RXer *bap)
{
/* TODO */
free(bap);
-void bap_frame_free(struct BAP_Frame *bap_frame)
+void vw_bap_frame_free(struct BAP_Frame *bap_frame)
{
/* TODO */
free(bap_frame);
-void bap_frame_dump(struct BAP_Frame *bap_frame);
+void vw_bap_frame_dump(struct BAP_Frame *bap_frame);
-struct BAP_Frame* bap_handle_can_frame(struct BAP_RXer *bap, struct can_frame *frame);
+struct BAP_Frame* vw_bap_handle_can_frame(struct BAP_RXer *bap, struct can_frame *frame);
-struct BAP_RXer* bap_alloc();
-void bap_free(struct BAP_RXer *bap);
-void bap_frame_free(struct BAP_Frame *bap_frame);
+struct BAP_RXer* vw_bap_alloc();
+void vw_bap_free(struct BAP_RXer *bap);
+void vw_bap_frame_free(struct BAP_Frame *bap_frame);