dispatcher: Add a more safe dispatcher_send_message_custom version

Enterprise / Virtualization / SPICE - Frediano Ziglio [redhat.com] - 1 May 2020 05:58 EDT

Use a template to wrap the other dispatcher_send_message_custom avoiding having to pass a void* opaque and extract payload size from passed type. Will be used more by next commit when Dispatchers are turned into C++.

f680cc78 dispatcher: Add a more safe dispatcher_send_message_custom version
server/dispatcher.h | 11 +++++++++++
server/red-channel.cpp | 5 ++---
2 files changed, 13 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share