Use IPC:MakeHeader instead of hardcoded raw values for IPC command tables. (#6453)
* Use IPC:MakeHeader instead of hardcoded values for IPC command tables. * Use u32 instead of unsigned int in MakeHeader function Co-authored-by: SachinVin <26602104+SachinVin@users.noreply.github.com> * Fix clang format --------- Co-authored-by: SachinVin <26602104+SachinVin@users.noreply.github.com>
This commit is contained in:
parent
9bd8c9290b
commit
63bc0b59bb
74 changed files with 1983 additions and 1896 deletions
|
@ -56,8 +56,7 @@ union Header {
|
|||
* @note While @p normal_params_size is equivalent to the number of normal parameters,
|
||||
* @p translate_params_size includes the size occupied by the translate parameters headers.
|
||||
*/
|
||||
inline u32 MakeHeader(u16 command_id, unsigned int normal_params_size,
|
||||
unsigned int translate_params_size) {
|
||||
inline constexpr u32 MakeHeader(u16 command_id, u32 normal_params_size, u32 translate_params_size) {
|
||||
Header header{};
|
||||
header.command_id.Assign(command_id);
|
||||
header.normal_params_size.Assign(normal_params_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue