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

Commit a61d0912 authored by Chris Manton's avatar Chris Manton
Browse files

Add stack/include::BT_HDR rigid struct

Missing the dreaded flexible array member which is embedded
in the middle of so many larger structs

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I7c4f92221b25dc93e6165ed7ab1991529ffc1539
parent 28e52f8a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -91,6 +91,16 @@ typedef struct {
  uint8_t data[];
} BT_HDR;

typedef struct {
  uint16_t event;
  uint16_t len;
  uint16_t offset;
  uint16_t layer_specific;
  // Note: Removal of flexible array member with no specified size.
  // This struct may be embedded in any position within other structs
  // and will not trigger various flexible member compilation issues.
} BT_HDR_RIGID;

#define BT_HDR_SIZE (sizeof(BT_HDR))

enum {