Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0c8189de authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: Generate simpler code for PDL structs

Before, we treated packets and structs the same: for a packet or
struct Foo, we would generate three Rust structs:

  struct Foo
  struct FooData
  struct FooBuilder

This doesn’t match the old bluetooth_packetgen compiler: it would only
generate a single Rust struct with public fields in case of a PDL
struct.

We now do the same for the new compiler. We reuse most of the
generator code from the old data struct generator since this is the
one that most closely resemble the struct we want.

Tag: #feature
Bug: 230475725
Test: atest pdl_tests pdl_rust_generator_tests_{le,be}
Change-Id: Idf2ae9cc1347d2f6b1a5b9b7c29f14e225e7080c
parent 4546d4a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment