From d76d7c087d4018321bd48981a3a1e93b63cf20f0 Mon Sep 17 00:00:00 2001 From: norly Date: Wed, 22 Mar 2017 22:47:31 +0100 Subject: Rename functions with vw_ prefix --- vw-bap-dump.c | 8 ++++---- vw-bap.c | 10 +++++----- vw-bap.h | 10 +++++----- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/vw-bap-dump.c b/vw-bap-dump.c index 0b4e6a2..ac4f7be 100644 --- a/vw-bap-dump.c +++ b/vw-bap-dump.c @@ -89,7 +89,7 @@ int main(int argc, char **argv) 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; @@ -130,11 +130,11 @@ int main(int argc, char **argv) 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; diff --git a/vw-bap.c b/vw-bap.c index 34921db..a8036d7 100644 --- a/vw-bap.c +++ b/vw-bap.c @@ -8,7 +8,7 @@ #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; @@ -44,7 +44,7 @@ void 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_Frame *bap_frame = NULL; unsigned short header; @@ -175,7 +175,7 @@ struct BAP_Frame* bap_handle_can_frame(struct BAP_RXer *bap, struct can_frame *f -struct BAP_RXer* bap_alloc() +struct BAP_RXer* vw_bap_alloc() { struct BAP_RXer *bap; @@ -190,7 +190,7 @@ struct BAP_RXer* bap_alloc() -void bap_free(struct BAP_RXer *bap) +void vw_bap_free(struct BAP_RXer *bap) { /* TODO */ free(bap); @@ -198,7 +198,7 @@ void bap_free(struct BAP_RXer *bap) -void bap_frame_free(struct BAP_Frame *bap_frame) +void vw_bap_frame_free(struct BAP_Frame *bap_frame) { /* TODO */ free(bap_frame); diff --git a/vw-bap.h b/vw-bap.h index 0345605..0c8690f 100644 --- a/vw-bap.h +++ b/vw-bap.h @@ -28,13 +28,13 @@ struct BAP_RXer { -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); -- cgit v1.2.3