shared: Add ipc_command_size function to the protocol generation.