Skip to content

C struct generator: have single header struct #1

@ThirteenFish

Description

@ThirteenFish

Currently for each new data container we do something like this:

struct FooData {
    type field1;
    type field2;
}

struct FooMessage {
    char ID[4];
    uint8_t timestamp[6];
    uint16_t length;
    struct FooData data;
}

Instead we should have a single struct for the header and then either have struct FooMessage be a combination of the two structs, or have FooData be expanded inside FooMessage, or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions