diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-09-29 08:31:00 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-09-29 08:53:17 +0000 |
commit | 520a4daf95ae38e5012512b51bffdfd5dba53135 (patch) | |
tree | d1ab9c847bbfc0e3361dc87f932b0cd71e1d778c /src/libqmi-glib | |
parent | e937112a00ed2872b13f57f1a5da16aa13f798d4 (diff) |
libqmi-glib,message: add note about qmux/qrtr header sizes
Diffstat (limited to 'src/libqmi-glib')
-rw-r--r-- | src/libqmi-glib/qmi-message.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libqmi-glib/qmi-message.c b/src/libqmi-glib/qmi-message.c index edb528e..8e3132a 100644 --- a/src/libqmi-glib/qmi-message.c +++ b/src/libqmi-glib/qmi-message.c @@ -125,7 +125,10 @@ struct full_message { } qmi; } PACKED; -/* qmux_header and qrtr_header must always be of the same size */ +/* qmux_header and qrtr_header are of the same size, so that the overall + * QMI header struct is also always of the same size. This is convenient + * when building new QMI messages or ensuring the full header is available, + * but it is not a strict requirement. */ G_STATIC_ASSERT (sizeof (struct qmux_header) == sizeof (struct qrtr_header)); #define MESSAGE_IS_QMUX(self) (((struct full_message *)(self->data))->marker == QMI_MESSAGE_QMUX_MARKER) |