New listKeys() API to support glob-style key search patterns
Added new listKeys() API's to list all keys matching search glob-style
pattern under the namespace.
Deprecated old findKeys() and findKeysAsync() API's. Deprecated API's
will be removed later releases.
Release version 1.5.0
Issue-Id: RIC-110
Change-Id: Ia411a2e6fa45305580810d88e7434e5460ac3114
Signed-off-by: Petri Ovaska <petri.ovaska@nokia.com>
diff --git a/src/asyncdummystorage.cpp b/src/asyncdummystorage.cpp
index c6ea105..db227cd 100644
--- a/src/asyncdummystorage.cpp
+++ b/src/asyncdummystorage.cpp
@@ -85,6 +85,11 @@
postCallback(std::bind(findKeysAck, std::error_code(), Keys()));
}
+void AsyncDummyStorage::listKeys(const Namespace&, const std::string&, const FindKeysAck& findKeysAck)
+{
+ postCallback(std::bind(findKeysAck, std::error_code(), Keys()));
+}
+
void AsyncDummyStorage::removeAllAsync(const Namespace&, const ModifyAck& modifyAck)
{
postCallback(std::bind(modifyAck, std::error_code()));