@@ -44,20 +44,20 @@ namespace Exchange {
44
44
~INotification () override = default ;
45
45
46
46
// @alt onValueChanged
47
- virtual void ValueChanged (const ScopeType scope, const string& ns /* @text:namespace */ , const string& key, const string& value) = 0;
47
+ virtual void ValueChanged (const ScopeType scope, const string& ns /* @text:namespace */ , const string& key, const string& value) {}
48
48
};
49
49
50
- virtual uint32_t Register (Exchange::IStore2::INotification* notification) = 0;
51
- virtual uint32_t Unregister (Exchange::IStore2::INotification* notification) = 0;
50
+ virtual Core::hresult Register (Exchange::IStore2::INotification* notification) = 0;
51
+ virtual Core::hresult Unregister (Exchange::IStore2::INotification* notification) = 0;
52
52
53
53
// @alt setValue
54
- virtual uint32_t SetValue (const ScopeType scope, const string& ns /* @text:namespace */ , const string& key, const string& value, const uint32_t ttl) = 0;
54
+ virtual Core::hresult SetValue (const ScopeType scope, const string& ns /* @text:namespace */ , const string& key, const string& value, const uint32_t ttl) = 0;
55
55
// @alt getValue
56
- virtual uint32_t GetValue (const ScopeType scope, const string& ns /* @text:namespace */ , const string& key, string& value /* @out */ , uint32_t & ttl /* @out */ ) = 0;
56
+ virtual Core::hresult GetValue (const ScopeType scope, const string& ns /* @text:namespace */ , const string& key, string& value /* @out */ , uint32_t & ttl /* @out */ ) = 0;
57
57
// @alt deleteKey
58
- virtual uint32_t DeleteKey (const ScopeType scope, const string& ns /* @text:namespace */ , const string& key) = 0;
58
+ virtual Core::hresult DeleteKey (const ScopeType scope, const string& ns /* @text:namespace */ , const string& key) = 0;
59
59
// @alt deleteNamespace
60
- virtual uint32_t DeleteNamespace (const ScopeType scope, const string& ns /* @text:namespace */ ) = 0;
60
+ virtual Core::hresult DeleteNamespace (const ScopeType scope, const string& ns /* @text:namespace */ ) = 0;
61
61
};
62
62
63
63
struct EXTERNAL IStoreInspector : virtual public Core::IUnknown {
@@ -74,9 +74,9 @@ namespace Exchange {
74
74
using IStringIterator = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
75
75
using INamespaceSizeIterator = RPC::IIteratorType<NamespaceSize, ID_STORE_INSPECTOR_NAMESPACE_SIZE_ITERATOR>;
76
76
77
- virtual uint32_t GetKeys (const ScopeType scope, const string& ns, IStringIterator*& keys /* @out */ ) = 0;
78
- virtual uint32_t GetNamespaces (const ScopeType scope, IStringIterator*& namespaces /* @out */ ) = 0;
79
- virtual uint32_t GetStorageSizes (const ScopeType scope, INamespaceSizeIterator*& storageList /* @out */ ) = 0;
77
+ virtual Core::hresult GetKeys (const ScopeType scope, const string& ns, IStringIterator*& keys /* @out */ ) = 0;
78
+ virtual Core::hresult GetNamespaces (const ScopeType scope, IStringIterator*& namespaces /* @out */ ) = 0;
79
+ virtual Core::hresult GetStorageSizes (const ScopeType scope, INamespaceSizeIterator*& storageList /* @out */ ) = 0;
80
80
};
81
81
82
82
struct EXTERNAL IStoreLimit : virtual public Core::IUnknown {
@@ -86,8 +86,8 @@ namespace Exchange {
86
86
87
87
using ScopeType = IStore2::ScopeType;
88
88
89
- virtual uint32_t SetNamespaceStorageLimit (const ScopeType scope, const string& ns, const uint32_t size) = 0;
90
- virtual uint32_t GetNamespaceStorageLimit (const ScopeType scope, const string& ns, uint32_t & size /* @out */ ) = 0;
89
+ virtual Core::hresult SetNamespaceStorageLimit (const ScopeType scope, const string& ns, const uint32_t size) = 0;
90
+ virtual Core::hresult GetNamespaceStorageLimit (const ScopeType scope, const string& ns, uint32_t & size /* @out */ ) = 0;
91
91
};
92
92
93
93
} // namespace Exchange
0 commit comments