vw-bap-frame.c: Extract frame handling functions
[revag-bap.git] / vw-bap.h
index b7540ea070a816d55d60a3c56675257c139f7c79..7bccdfd0cc79b7117313c93ecb39d908bfba9b74 100644 (file)
--- a/vw-bap.h
+++ b/vw-bap.h
@@ -62,14 +62,17 @@ struct BAP_RXer {
 
 
 
+/* BAP frame struct handling */
+struct BAP_Frame* vw_bap_frame_alloc(void);
+             void vw_bap_frame_free(struct BAP_Frame *bap_frame);
 
+int vw_bap_frame_is_valid(struct BAP_Frame *bap_frame);
 
 void vw_bap_frame_dump(struct BAP_Frame *bap_frame);
 
-struct BAP_Frame* vw_bap_handle_can_frame(struct BAP_RXer *bap, struct can_frame *frame);
-
-void vw_bap_frame_free(struct BAP_Frame *bap_frame);
 
+/* BAP reception */
+struct BAP_Frame* vw_bap_handle_can_frame(struct BAP_RXer *bap, struct can_frame *frame);
 struct BAP_RXer* vw_bap_rxer_alloc();
 void vw_bap_rxer_free(struct BAP_RXer *bap);