avb: more work

Implement generic MRP parsing.
Implement more MRP messages.
Implement MRP timeouts.
Implement MRP join/leave.
Prepare for generating and sending MRP packets.
This commit is contained in:
Wim Taymans 2022-03-23 19:57:25 +01:00
parent 0efc02cea6
commit f64f8cdd4d
11 changed files with 707 additions and 137 deletions

View file

@ -104,6 +104,24 @@ struct avbtp_packet_msrp_domain {
uint16_t sr_class_vid;
} __attribute__ ((__packed__));
int avbtp_msrp_register(struct server *server);
struct avbtp_msrp_attribute {
struct avbtp_mrp_attribute *mrp;
uint8_t type;
uint8_t param;
union {
struct avbtp_packet_msrp_talker talker;
struct avbtp_packet_msrp_talker_fail talker_fail;
struct avbtp_packet_msrp_listener listener;
struct avbtp_packet_msrp_domain domain;
} attr;
};
struct avbtp_msrp;
struct avbtp_msrp_attribute *avbtp_msrp_attribute_new(struct avbtp_msrp *msrp,
uint8_t type);
struct avbtp_msrp *avbtp_msrp_register(struct server *server);
#endif /* AVBTP_MSRP_H */