Rename functions with vw_ prefix
authornorly <ny-git@enpas.org>
Wed, 22 Mar 2017 21:47:31 +0000 (22:47 +0100)
committernorly <ny-git@enpas.org>
Wed, 22 Mar 2017 21:47:31 +0000 (22:47 +0100)
vw-bap-dump.c
vw-bap.c
vw-bap.h

index 0b4e6a2c957feb16bab02c1efc619a3b0ac878b4..ac4f7be21dc37fd02e26ed14f314c3affc1a84b7 100644 (file)
@@ -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;
index 34921dbca77221403dba9ecbc4ee80b52603140f..a8036d7c63170ee41be3c7374964ccf2444f4ff5 100644 (file)
--- 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);
index 0345605b0e64972a4b1f941f6b7f3f639e24e410..0c8690fbdaa1c7896aedad593e8e9bda0eecceb4 100644 (file)
--- 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);