Add immediate_notify and is_new to entry listener.

On the callback function, is_new indicates the value is newly added.

On adding a callback function, immediate_notify indicates the callback
should be called once (with is_new=true) for each matching entry that
already exists.
This commit is contained in:
Peter Johnson
2015-07-23 01:02:53 -07:00
parent 79f732f239
commit 6f940bcaaf
4 changed files with 16 additions and 10 deletions

View File

@@ -61,8 +61,8 @@ void Flush() {
* Callback Creation Functions
*/
unsigned int AddEntryListener(StringRef prefix,
EntryListenerCallback callback) {
unsigned int AddEntryListener(StringRef prefix, EntryListenerCallback callback,
bool immediate_notify) {
return 0;
}