mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-13 12:33:20 +02:00
23 lines
519 B
C++
23 lines
519 B
C++
#ifndef BOSS_MSG_COMMANDRESPONSE_HPP
|
|
#define BOSS_MSG_COMMANDRESPONSE_HPP
|
|
|
|
#include"Json/Out.hpp"
|
|
#include"Ln/CommandId.hpp"
|
|
|
|
namespace Boss { namespace Msg {
|
|
|
|
/** struct Boss::Msg::CommandResponse
|
|
*
|
|
* @brief Emit in response to a Boss::Msg::CommandRequest.
|
|
* If multiple responses for the same ID are emitted, or
|
|
* for a nonexistent ID, the extras/nonexistent are
|
|
* silently ignored.
|
|
*/
|
|
struct CommandResponse {
|
|
Ln::CommandId id;
|
|
Json::Out response;
|
|
};
|
|
|
|
}}
|
|
|
|
#endif /* !defined(BOSS_MSG_COMMANDRESPONSE_HPP) */
|