Logo
Explore Help
Sign In
linuxmsm/qmic
0
0
Fork 0
You've already forked qmic
mirror of https://github.com/linux-msm/qmic.git synced 2026-02-25 13:11:34 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
master
qmic/tests/fixed.qmi

18 lines
311 B
Plaintext
Raw Permalink Normal View History

parser: reset fixed flag each for each array If a message contains an array, we need to reset the flag that indicates whether it is a fixed array or not each time through the loop parsing message members. Otherwise a non-fixed array declared after a fixed array will be marked as fixed. Drop the "int" in the definition of the array_size local varaible in qmi_message_parse() to be consistent with the rest of the program. Signed-off-by: Alex Elder <elder@linaro.org> Message-Id: <20211001232338.769309-22-elder@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-10-01 18:23:25 -05:00
package test;
struct qmi_result {
u16 result;
u16 error;
};
request test_request {
optional u8 variable(5) = 0x1;
optional u16 fixed[5] = 0x2;
# The next field should have array_type VAR_LEN_ARRAY
optional u32 not_fixed(5) = 0x3;
} = 0x23;
response test_response {
required qmi_result r = 2;
} = 043;
Reference in New Issue Copy Permalink
Powered by Gitea Page: 84ms Template: 5ms
English
English
Licenses API