summaryrefslogtreecommitdiff
path: root/src/operator-namespace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-namespace.cc')
-rw-r--r--src/operator-namespace.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/operator-namespace.cc b/src/operator-namespace.cc
index a331420..6bf80f4 100644
--- a/src/operator-namespace.cc
+++ b/src/operator-namespace.cc
@@ -26,9 +26,9 @@ const std::string NamespaceOperator::getName() const
return "NAMESPACE";
}
-int NamespaceOperator::getState() const
+Session::State NamespaceOperator::getState() const
{
- return Session::AUTHENTICATED | Session::SELECTED;
+ return Session::State(Session::AUTHENTICATED | Session::SELECTED);
}
Operator::ProcessResult NamespaceOperator::process(Depot &depot, Request &command)
@@ -46,22 +46,22 @@ Operator::ProcessResult NamespaceOperator::process(Depot &depot, Request &comman
bincClient << " NIL"; // shared namespaces
bincClient << std::endl;
- return OK;
+ return Operator::ProcessResult::OK;
}
-Operator::ParseResult NamespaceOperator::parse(Request &c_in) const
+Parser::ParseResult NamespaceOperator::parse(Request &c_in)
{
Session &session = Session::getInstance();
- if (c_in.getUidMode()) return REJECT;
+ if (c_in.getUidMode()) return Parser::ParseResult::REJECT;
- Operator::ParseResult res;
- if ((res = expectCRLF()) != ACCEPT) {
+ Parser::ParseResult res;
+ if ((res = expectCRLF()) != Parser::ParseResult::ACCEPT) {
session.setLastError("Expected CRLF after NAMESPACE");
return res;
}
c_in.setName("NAMESPACE");
- return ACCEPT;
+ return Parser::ParseResult::ACCEPT;
}