Rename BAP 'function' to 'port'
[revag-bap.git] / vw-bap-dump.c
index 0b4e6a2c957feb16bab02c1efc619a3b0ac878b4..62916f15e4b3ae31ccd6423f24a4c5c124f3bb14 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_rxer_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;