dbus2 / zbus-old

Rust D-Bus crate.
https://gitlab.freedesktop.org/dbus/zbus
Other
49 stars 13 forks source link

Add an API similar to `GDBusMessage::from_blob` #336

Open zeenix opened 1 year ago

zeenix commented 1 year ago

In GitLab by @SeaDve on Mar 16, 2023, 15:44

Currently, there is zbus::Message::from_raw_parts. However, it is private.

For the use case, Bustle has DBus messages serialized in a pcap file. There is currently not a convenient way to parse the bytes from each packet from the pcap file into a zbus::Message.

Link

zeenix commented 1 year ago

Thanks for reporting this but I guess I wasn't clear on the matrix channel when we discussed this. I don't need to consider this, I think we should provide such an API. I suggested we make zbus::Message::from_raw_parts public as part of MessageBuilder. Would it be possible to provide a MR?

zeenix commented 1 year ago

In GitLab by @SeaDve on Mar 16, 2023, 16:07

Ahhh. yeah, sure