file system message getter func

This commit is contained in:
Robin Müller 2020-09-20 13:38:53 +02:00
parent 763c52cfca
commit f5d793a1cf
2 changed files with 7 additions and 0 deletions

View File

@ -59,3 +59,8 @@ void FileSystemMessage::setFailureReply(CommandMessage *message,
message->setCommand(COMPLETION_SUCCESS);
message->setParameter(errorCode);
}
ReturnValue_t FileSystemMessage::getFailureReply(
const CommandMessage *message) {
return message->getParameter();
}

View File

@ -32,6 +32,8 @@ public:
static store_address_t getStoreId( const CommandMessage* message );
static void setSuccessReply(CommandMessage* message);
static void setFailureReply(CommandMessage* message, ReturnValue_t errorCode);
static ReturnValue_t getFailureReply(const CommandMessage* message);
};
#endif /* FSFW_MEMORY_FILESYSTEMMESSAGE_H_ */