mirror of
https://github.com/zeldaret/botw
synced 2026-06-24 17:03:19 -04:00
ksys: Add MessageProcessor
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#include "KingSystem/Utils/Thread/MessageAck.h"
|
||||
|
||||
namespace ksys {
|
||||
|
||||
MessageAck::MessageAck(bool dest_valid, bool success,
|
||||
const MesTransceiverId& destination, const MessageType& type,
|
||||
void* user_data)
|
||||
: mDestValid(dest_valid), mSuccess(success), mDestination(destination), mType(type),
|
||||
mUserData(user_data) {}
|
||||
|
||||
MessageAck::~MessageAck() = default;
|
||||
|
||||
bool MessageAck::isDestinationValid() const {
|
||||
return mDestValid;
|
||||
}
|
||||
|
||||
bool MessageAck::isSuccess() const {
|
||||
return mSuccess;
|
||||
}
|
||||
|
||||
const MesTransceiverId& MessageAck::getDestination() const {
|
||||
return mDestination;
|
||||
}
|
||||
|
||||
const MessageType& MessageAck::getType() const {
|
||||
return mType;
|
||||
}
|
||||
|
||||
void* MessageAck::getUserData() const {
|
||||
return mUserData;
|
||||
}
|
||||
|
||||
} // namespace ksys
|
||||
Reference in New Issue
Block a user