From f5d793a1cf63b9ebe87bef2e0d49e55947c11cf1 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Sun, 20 Sep 2020 13:38:53 +0200 Subject: [PATCH] file system message getter func --- memory/FileSystemMessage.cpp | 5 +++++ memory/FileSystemMessage.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/memory/FileSystemMessage.cpp b/memory/FileSystemMessage.cpp index 951836e9..416f646c 100644 --- a/memory/FileSystemMessage.cpp +++ b/memory/FileSystemMessage.cpp @@ -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(); +} diff --git a/memory/FileSystemMessage.h b/memory/FileSystemMessage.h index 6508f6be..d3dbd83c 100644 --- a/memory/FileSystemMessage.h +++ b/memory/FileSystemMessage.h @@ -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_ */