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_ */