DO NOT MERGE: test struct_endianness CI

Change-Id: I91625b54ab2698504340f627c8473e2967868f6d
This commit is contained in:
Oliver Smith 2023-02-20 16:57:03 +01:00
parent c871c2f4b3
commit 5b234e3365
1 changed files with 29 additions and 0 deletions

View File

@ -40,3 +40,32 @@ bool msc_is_connected(struct msc *msc);
void msc_free(struct msc *msc);
void msc_free_subscr_conn_all(struct msc *msc);
struct gsm341_ms_message {
struct {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t code_hi:6;
uint8_t gs:2;
uint8_t update:4;
uint8_t code_lo:4;
#elif OSMO_IS_BIG_ENDIAN
#endif
} serial;
uint16_t msg_id;
struct {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t language:4;
uint8_t group:4;
#endif
} dcs;
struct {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t total:4;
uint8_t current:4;
#endif
} page;
uint8_t data[0];
} __attribute__((packed));