summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2017-03-22 22:47:31 +0100
committernorly <ny-git@enpas.org>2017-03-22 22:47:31 +0100
commitd76d7c087d4018321bd48981a3a1e93b63cf20f0 (patch)
tree1682cc06d8d54b1297c1aad30ba53ebb558f56f5
parent54c0ca2077820b3672b67528e1dc8006c0f9f2b1 (diff)
Rename functions with vw_ prefix
-rw-r--r--vw-bap-dump.c8
-rw-r--r--vw-bap.c10
-rw-r--r--vw-bap.h10
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);