Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Add an API similar to GDBusMessage::from_blob #336

Open
zeenix opened this issue Mar 16, 2023 · 2 comments
Open

Add an API similar to GDBusMessage::from_blob #336

zeenix opened this issue Mar 16, 2023 · 2 comments

Comments

@zeenix
Copy link
Collaborator

zeenix commented Mar 16, 2023

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
Copy link
Collaborator Author

zeenix commented Mar 16, 2023

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
Copy link
Collaborator Author

zeenix commented Mar 16, 2023

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

Ahhh. yeah, sure

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant