Rename RequestState to CaState
- to prevent confusion with RequesterState
Change-Id: I56048e289fded44bf39dd1fe6a5e26ddd3938b99
diff --git a/src/ca-storage-detail/ca-memory.cpp b/src/ca-storage-detail/ca-memory.cpp
index a81f4bf..827f36c 100644
--- a/src/ca-storage-detail/ca-memory.cpp
+++ b/src/ca-storage-detail/ca-memory.cpp
@@ -30,7 +30,7 @@
NDNCERT_REGISTER_CA_STORAGE(CaMemory);
-RequestState
+CaState
CaMemory::getRequest(const std::string& requestId)
{
auto search = m_requests.find(requestId);
@@ -41,7 +41,7 @@
}
void
-CaMemory::addRequest(const RequestState& request)
+CaMemory::addRequest(const CaState& request)
{
for (auto& entry : m_requests) {
const auto& existingRequest = entry.second;
@@ -68,7 +68,7 @@
}
void
-CaMemory::updateRequest(const RequestState& request)
+CaMemory::updateRequest(const CaState& request)
{
m_requests[request.m_requestId] = request;
}
@@ -82,20 +82,20 @@
}
}
-std::list<RequestState>
+std::list<CaState>
CaMemory::listAllRequests()
{
- std::list<RequestState> result;
+ std::list<CaState> result;
for (const auto& entry : m_requests) {
result.push_back(entry.second);
}
return result;
}
-std::list<RequestState>
+std::list<CaState>
CaMemory::listAllRequests(const Name& caName)
{
- std::list<RequestState> result;
+ std::list<CaState> result;
for (const auto& entry : m_requests) {
if (entry.second.m_caPrefix == caName) {
result.push_back(entry.second);